Formulas returning blank being read as >0 Why?

Bonkers Bill

Active Member
Joined
Feb 14, 2005
Messages
347
Hello, i am using the following formula in excel 2007

=IF($O$3="HOME",IF(INDEX(AC5:DV5,MATCH($R$4,$AB$3:$DU$3,0))="","",IF(INDEX(AC5:DV5,MATCH($R$4,$AC$3:$DV$3,0))="L","",INDEX(AC5:DV5,MATCH($R$4,$AB$3:$DU$3,0)))),"")

when this formula returns "" blank and i copy and use paste special, values only, another formula is reading the "" blanks as >0, Why? and what can i do to stop this?
 
Hello, i'm trying to alter the formula above usining N to countif cells contain numbers including 0's
=COUNTIFS(Scores!$A$4:$R$120,C7,Scores!$B$4:$S$120,"(N)")

This works but doesn't count 0's
=COUNTIFS(Scores!$A$4:$R$120,C7,Scores!$B$4:$S$120,">0")

Any ideas welcome, cheers
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hello, i'm trying to alter the formula above usining N to countif cells contain numbers including 0's
=COUNTIFS(Scores!$A$4:$R$120,C7,Scores!$B$4:$S$120,"(N)")

This works but doesn't count 0's
=COUNTIFS(Scores!$A$4:$R$120,C7,Scores!$B$4:$S$120,">0")

Any ideas welcome, cheers

What do you have in C7?

Are you trying to count numbers greater than 0, which occur in the relevant ranges as part of Scores!$B$4:$S$120? If you want to count the real 0's too, you need ">=0" instead of just ">0".
 
Upvote 0
Hi Aladin, c7 is the name of the team i am counting the amount of games played, unfortunately they have a score of 0-9 and the formula wont count the 0 as there are lots of blank cells for future matches not played yet, i entered ">=0" but it has returned me 19 instead of 8 with a possible 28 matches
 
Upvote 0
Hi Aladin, c7 is the name of the team i am counting the amount of games played, unfortunately they have a score of 0-9 and the formula wont count the 0 as there are lots of blank cells for future matches not played yet, i entered ">=0" but it has returned me 19 instead of 8 with a possible 28 matches

Let's check something:

What do we get with:

=COUNTIF(Scores!$B$4:$B$120,">=0")

and with:

=SUMPRODUCT(--(ISNUMBER(Scores!$B$4:$B$120),--(Scores!$B$4:$B$120>=0))
 
Upvote 0
The 1st returns 21, the 2nd formula contains an error
niether formula covers the range required

Darn parens...

=SUMPRODUCT(--ISNUMBER(Scores!$B$4:$B$120),--(Scores!$B$4:$B$120>=0))

Bill: I'm not trying to cover the whole range. Just carrying a test...

Thus:

=COUNTIF(Scores!$B$4:$B$120,">=0")

What does yield the corrected SumProduct?

returns 21
 
Upvote 0
i'm not sure how to do that as it is over 3 work sheets
the sumproduct formula does count the 0's as well if i add one in so i'm sure this will work if modified
 
Upvote 0

Forum statistics

Threads
1,224,621
Messages
6,179,938
Members
452,949
Latest member
beartooth91

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