I want to do the following:
Look-up a value in the top row of a table, and return the sum of certain rows below that value.
Simplified example:
A B C
Red Blue
1 John 3 1
2 John 4 2
3 Mike 2 5
I want to look-up "Red", and return the sum of all "Johns" in the Red Column.
I try this formula, but it doesn't work:
=HLOOKUP("Red",A1:C3,SUMIF(A1:A3,"John",B1:B3))
Any thoughts? Perhaps HLookup isn't the right function?
=HLOOKUP
Bookmarks