Reputation: 245
So, I want to find all the id's (there could be multiple) in column orderId. This is the formula i have...
=LOOKUP(INDIRECT("A" & ROW()),Table2[orderId],Table2[quantity])
it only selects the value of the last id of said number, how would i write it to select them all and add them together?
Upvotes: 0
Views: 311
Reputation: 26640
I think you're looking for Sumif:
=SUMIF(Table2[OrderID],A1,Table2[Quantity])
Upvotes: 3