#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default SUMPRODUCT problem

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.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default SUMPRODUCT problem

You can't use the whole column in SUMPRODUCT.
--
David Biddulph

"Joe M." wrote in message
...
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.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default SUMPRODUCT problem

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.

"Don Guillett" wrote:

modify to suit
=SUMPRODUCT((A2:A22={0,1})*(B2:B22="brkd"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Joe M." wrote in message
...
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.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default SUMPRODUCT problem

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

Thanks,
Joe M.


"David Biddulph" wrote:

You can't use the whole column in SUMPRODUCT.
--
David Biddulph

"Joe M." wrote in message
...
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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with SUMPRODUCT....help please! Tasha Excel Worksheet Functions 5 July 16th 07 08:20 PM
Sumproduct problem [email protected] Excel Worksheet Functions 1 January 4th 07 06:41 AM
SUMPRODUCT PROBLEM laurie g Excel Worksheet Functions 3 September 11th 06 05:00 AM
sumproduct problem Stefan Excel Worksheet Functions 2 January 5th 06 10:59 AM
sumproduct problem christophe meresse Excel Worksheet Functions 3 July 30th 05 02:23 PM


All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"