Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I need to count how many times "D" comes up in column A but only when ordered
by John in Column C. TYPE CUSTOMER ORDERED BY D TRICIN JONATHAN D ATLANTIC PKG. DAN D ATLANTIC PKG. JOHN E SONCIN PAUL I hope this makes sense and thanks for the help. |
#2
![]() |
|||
|
|||
![]()
Hi
Try: =SUMPRODUCT((A2:A100="D")*(C2:C100="John")) Note that the ranges in SUMPRODUCT must be the same size - and cannot be full columns Andy. "Laur" wrote in message ... I need to count how many times "D" comes up in column A but only when ordered by John in Column C. TYPE CUSTOMER ORDERED BY D TRICIN JONATHAN D ATLANTIC PKG. DAN D ATLANTIC PKG. JOHN E SONCIN PAUL I hope this makes sense and thanks for the help. |
#3
![]() |
|||
|
|||
![]()
Thanks but it didn't work. Any other suggestions?
"Andy B" wrote: Hi Try: =SUMPRODUCT((A2:A100="D")*(C2:C100="John")) Note that the ranges in SUMPRODUCT must be the same size - and cannot be full columns Andy. "Laur" wrote in message ... I need to count how many times "D" comes up in column A but only when ordered by John in Column C. TYPE CUSTOMER ORDERED BY D TRICIN JONATHAN D ATLANTIC PKG. DAN D ATLANTIC PKG. JOHN E SONCIN PAUL I hope this makes sense and thanks for the help. |
#4
![]() |
|||
|
|||
![]()
It works, so long as the entries for "D" types have no extra spaces, and same
for the names - no extra spaces Try this, in case there are spaces: =SUMPRODUCT((TRIM(A2:A100)="D")*(TRIM(C2:C100)="Jo hn")) "Laur" wrote: Thanks but it didn't work. Any other suggestions? "Andy B" wrote: Hi Try: =SUMPRODUCT((A2:A100="D")*(C2:C100="John")) Note that the ranges in SUMPRODUCT must be the same size - and cannot be full columns Andy. "Laur" wrote in message ... I need to count how many times "D" comes up in column A but only when ordered by John in Column C. TYPE CUSTOMER ORDERED BY D TRICIN JONATHAN D ATLANTIC PKG. DAN D ATLANTIC PKG. JOHN E SONCIN PAUL I hope this makes sense and thanks for the help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF COMBINATION?? | Excel Worksheet Functions | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions | |||
Countif - Countif | Excel Worksheet Functions | |||
countif, again | Excel Worksheet Functions |