Combining Lookup function and Sum function

C

Cameron

I am trying to use the lookup function to find all values in a spreadsheet
matching "D" then returning the value to the left of it. I would like the
function to sum all the values before it is returned. Is this possible to do
in one step?
 
T

T. Valko

Is this what you had in mind:

...........A..........B
1........5..........X
2........3..........D
3........7..........D
4........2..........Y
5........5..........D

=SUMIF(B1:B5,"D",A1:A5)

Result = 15
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top