Sum cells based on two criteria

A

Ann

I need a total (count) broken down by user (name) and month. What formula can
I use to achieve this? SUMIF only allows 1 criterion, whereas I have two
(name and month).

A2 = Count
B2 = Name
C2 = Month

EXPECTED RESULTS:
Jan Feb Mar
Smith 20 4 15
Jones 16 12 19
 
J

Joel

use an AND function inside the SUMIF

SUMIF(range1,AND(month=2,Name="ANN),range2)

the 2nd parametter of the SUMIF can be any function or equationthat returns
a TRUE or FALSE response
 
T

Tom Ogilvy

That doesn't work Joel.

--
Regards,
Tom Ogilvy


Joel said:
use an AND function inside the SUMIF

SUMIF(range1,AND(month=2,Name="ANN),range2)

the 2nd parametter of the SUMIF can be any function or equationthat returns
a TRUE or FALSE response
 
A

Ann

I think I'm closer, but still having trouble getting a sum on the count.
Could you review this array?

{=SUM(IF($B$3:$B$759="Despain",IF($C$3:$C$759="January",$A$3:$A$759,0),0))}
 
T

Tom Ogilvy

does your source look like this


55 Despain January
25 Despain February


and column C actually holds the month as a string. (not as a date formatted
to display only the month)
 

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