Count alternative to SUMPRODUCT?

bsnapool

Active Member
Joined
Jul 10, 2006
Messages
452
Is there a count alternative to sum product?

I have data in column D > if this = "M" and column R = "Sic" then i would like to count how many "M" there are in column D.

Any ideas>?

Thanks in advance..

Andrew
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,010
Office Version
  1. 365
Not sure why you want an "alternative to sum product"... why not use =SUMPRODUCT(--(D1:D100="M"),--(R1:R100="Sic")) to get the count?
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,705
Try...

=SUMPRODUCT(--(D2:D100="M"),--(R2:R100="Sic"))

Hope this helps!
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Not sure why you'd want an alternative but:

=SUM(IF(D1:D100="M",IF(R1:R100="Sic",1)))

which needs to be confirmed with Ctrl+Shift+Enter

Richard
 

bsnapool

Active Member
Joined
Jul 10, 2006
Messages
452
Thanks for all your responses...

Was under the impression that SUMPRODUCT, would sum only numbers... Friday, need to go home!!

Thanks
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
SUMPRODUCT does only work with numbers, that is why the use of --, it is coercing the TRUE/FALSE values to 1 and 0 respectively.
 

Forum statistics

Threads
1,137,193
Messages
5,680,086
Members
419,880
Latest member
suarezprado

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top