Home |
Search |
Today's Posts |
#1
|
|||
|
|||
COUNTIF or SUMPRODUCT counting multiple criteria
You can not use the whole column so you need to specify the range
=SUMPRODUCT(--('Attendance'!C2:C1000="Attorney"),--('Attendance'!D2:D1000="atlanta")) a good idea would be to replace the hard coded names (attorney and atlanta) with cell references, that way you don't have to edit the formula if the criteria is changed Regards, Peo Sjoblom "Kim" wrote: I want to count the number of entries that have "attorney" in column C AND "atlanta" in column D. I only want to count the entries that meet both criteria (not one OR the other). I have tried numerous formulas usually get an error #NUM! Here is what I have tried. =SUMPRODUCT((Attendance!C:C="Attorney")*(Attendanc e!D:D="Atlanta")) =COUNTIF(Attendance!C:C, {"Attorney","Atlanta"}) =SUMPRODUCT(--(Attendance!C:C="Attorney"),--(Attendance!D:D="Atlanta")) Any suggestions? Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Counting Unique Records with multiple conditions | Excel Worksheet Functions | |||
counting Multiple answers in 1 cell + column | Excel Discussion (Misc queries) | |||
counting Multiple answers in 1 cell + column | Excel Discussion (Misc queries) | |||
Sumproduct - multiple criteria in Column A | Excel Worksheet Functions | |||
Countif with multiple criteria and multiple worksheets | Excel Worksheet Functions |