COUNTIF or SUMPRODUCT

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

Guest

Help
I need to know how many times a job code (2E190) occurs in column C, if
column D is one of 5 different office codes (CYN,CYND,CYNS,CYNT or CYNV) I
used the bellow code but it doesn’t seem to generate an answer in the cell
Note the data is recorded on one worksheet (functional view) and the chart
I’m displaying the info on is on another)

=SUMPRODUCT(--('Functional View'!C2:C102="2E131"),--('Functional
View'!D2:D102="CYN"),--('Functional View'!D2:D102="CYND")--('Functional
View'!D2:D102="CYNS")--('Functional View'!D2:D102="CYNT")--('Functional
View'!D2:D102="CYNV"))

Thanks in advance
 
Hi

You are missing commas between your arguments.
but this would be AND'ing each of the different office codes instead of
OR'ing.

Try
=SUMPRODUCT((C2:C102="2E131")*
(D2:D102={"CYN","CYND","CYNS","CYNT","CYNV"}))
 

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

Similar Threads

Problem with a sumproduct 4
Reverse of VLookUp 3
Function returns a list 2
CONCATENATE and SUMPRODUCT in a formula?? 2
SumProduct + CountIf 2
SUMPRODUCT help needed 4
Problem with SUMPRODUCT 6
Countif 2

Back
Top