+ Reply to Thread
Results 1 to 4 of 4

> or = to 0 includes blank cells

  1. #1
    Registered User
    Join Date
    01-20-2007
    Posts
    15

    > 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?
    Last edited by KJC; 03-25-2013 at 11:10 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    36,814

    Re: > or = to 0 includes blank cells

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


    Regards, TMS

  3. #3
    Registered User
    Join Date
    01-20-2007
    Posts
    15

    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. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    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)
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Bookmarks

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