How do I stop Excel counting blanks as zeros?

Fast Eddie

New Member
Joined
Nov 7, 2008
Messages
5
Great site this, the knowledge people have is phenomenal. I've already searched for this question or something similar but couldn't find a solution. I have a sheet to analyze football(soccer) scores. But when I count the zero scores (no goals scored) across a range blank cells in the range are counted as zero, which I don't want. Is there any command I could put with the formula to tell it not to count blank cells as zero or just not to count blank cells at all? The sort of formula I use is {=COUNT(IF(H103:H559=0,(IF(I103:I559=0,1))))}
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
It will work .......... :)

=SUMPRODUCT(--(H103:H559=0)*(H103:H559<>""),--(I103:I559=0)*--(I103:I559<>""))
cheers my main man, worked a treat, I don't know how exactly which is what I'd really like to learn, my sumproduct use is pretty basic and I don't really understand what I'm doing with any degree of certainty. I shall try Fairwinds solution next to see how that one goes and then I'll have meself two to choose from. moocho grassyarse me amigos!
Ed
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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