Countifs alternative for Excel 2003 / sumproduct help

Merellia

New Member
Joined
Jun 25, 2016
Messages
9
Hi! I'm using Excel 2003 (old, I know, but it has suited my very limited needs until today).

I'm trying to count the instances of X that also meet Y criteria. Both X and Y are text, in different columns of the same row. In post-2003 I would use countifs, which doesn't exist in 2003. I believe the alternative is sumproduct, but I haven't been able to get it to work either.

I *think* the countifs language would be =countifs(readers!f2:f999,"M",readers!g2:g999,"Yes")

Using sumproduct, I have tried:


=sumproduct(--(ISTEXT(readers!f2:f999="M")),--(ISTEXT(readers!g2:g99="Yes")))
This returns a value error. I've tried variations of this too (without ISTEXT, without the dashes) to no avail.

Any help on how to get a working sumproduct formula would be much appreciated!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

Try this:


Excel 2010
FG
2M
3MYes
4MYes
5MYes
readers



Excel 2010
B
13
2
Sheet2
Cell Formulas
RangeFormula
B1=SUMPRODUCT((readers!F2:F999="M")*(readers!G2:G999="Yes"))
 
Upvote 0
Merellia,

Try...
=SUMPRODUCT((F2:F999="M")*(G2:G999="Yes"))

The * operator within the Sumproduct effectively converts True & False to 1 & 0 so the double unary, -- ,is unnecessary.
* is also AND whereas + is OR
Hope that helps.

The
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,544
Messages
6,120,126
Members
448,947
Latest member
test111

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
Back
Top