How can I find vaues of cells using 2 search criteria?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

G'day,

I'm having trouble gettin my spreadsheet to find and add values based on 2
search criteria. I want the sreadsheet to find a date, and cross reference
it with a person, and then return a value, or sum of values from a 3rd
column. The problem lies in that there can be more than one match for these
two criteria, ie, 2 dates with the same person. How can I get the formula
to do this?
 
List of dates in A2:A20. Date to find in G1:
List of Names in B2:B20. Name to find in F1
Values to sum in C2:C20

=SUMPRODUCT(--($A$2:$A$20=$G$1),--($B$2:$B$20=$F$1),$C$2:$C$20)

Hope this helps
Rowan
 
You're a legend mate. Thankyou

Rowan Drummond said:
List of dates in A2:A20. Date to find in G1:
List of Names in B2:B20. Name to find in F1
Values to sum in C2:C20

=SUMPRODUCT(--($A$2:$A$20=$G$1),--($B$2:$B$20=$F$1),$C$2:$C$20)

Hope this helps
Rowan
 

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

Back
Top