SUMPRODUCT problem

J

Joe M.

I am trying to count the number of occurences which occur in 2 columns using:
=SUMPRODUCT(--('CM(Sched)'!AP:AP="BRKD"),--('CM(Sched)'!S:S=0))
In worksheet CM(Sched) column AP is the text "BRKD". In the same worksheet
column S has either a 0 or 1 (numeric).
S AP
0 DELTA
0 BRKD
1 BRKD
0 BRKD
The result should be 2. I get the error #NUM!. Can someone help?
Thanks,
Joe M.
 
J

Joe M.

I have changed the formula to
=SUMPRODUCT(('CM(Sched)'!AP:AP="BRKD")*('CM(Sched)'!S:S={0,1}))
I still get the #NUM! error.

Thanks,
Joe M.
 
D

Don Guillett

As David said,
ap2:ap22

Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
 
J

Joe M.

I'm making progress. The formula is now
=SUMPRODUCT(('CM(Sched)'!AP2:AP5000="BRKD")*('CM(Sched)'!S2:S5000={0,1}))
Now the error is #N/A. Also, Column S contains the formula =IF(F80>0,1,0).

Thanks,
Joe M.
 
D

Don Guillett

Try trimming your text

=SUMPRODUCT((TRIM('CM(Sched)'!AP2:AP5000)="BRKD")*('CM(Sched)'!S2:S5000={0,1}))
 

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

Sumproduct(?) 7
Using LEFT() in COUNTIF 2
=SUMPRODUCT(--(LEFT Bob Phillips 6
SUMPRODUCT HELP 2
sumproduct, lookup? 2
Convert text file to MS_Excel 1
Formula Problem 6
What makes people want to buy this NetBook 2

Top