# > or = to 0 includes blank cells

1. ## > or = to 0 includes blank cells

I'm making a scorekeeper for a game of 501 darts. It's basically two columns; one saying Remaining Score and the other saying Scored.

In order to prevent all the cells in the column from showing the Remaining Score when it's only required in the most recent cell, I came up with this formula:

=IF(Y6>0,X5-Y6,"")

Which says... If the score is greater than zero, then subtract scored from remaining score, if not then the remaining score cell will be blank.

The problem with this is that it's actually quite common to score zero in darts when shooting for doubles to end the game, but when I made the formula say greater than or equal to zero, it also counted the score cells that were blank... Meaning the remaining score was in all the cells anyway.

How do I get around this?

2. ## Re: > or = to 0 includes blank cells

=IF(AND(Y6<>"",Y6>0),X5-Y6,"")

Regards, TMS

3. ## Re: > or = to 0 includes blank cells

Using that code still makes the 'remaining column' blank when I add 0 as a score. Although it looks closer to fixing it than what I had..

501.jpg

In the above image when you see I put a 0 as a score, the remaining column stayed blank, but I need it to put the score in there again (400).

4. ## Re: > or = to 0 includes blank cells

since i cant see what columns you are in from an image! here it is done in cols a,b,c uses
=IF(C3="","",B2-C3)

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1