+ Reply to Thread
Results 1 to 9 of 9

formula in cell, how to show blank if 0

  1. #1
    Registered User
    Join Date
    11-15-2006
    Posts
    26

    Question formula in cell, how to show blank if 0

    Hi All,

    Firstly, sorry but there appears to be a problem with the search function!

    I have a spreadsheet which imports data from worksheets week 1, 2 etc to a monthly summary.
    Is there any way I can show a cell as blank if the return equals 0?

    I'm sure the resolution is probably simple but then so am I.

    Any help or advice will be greatly appreciated.

    Many thanks for your time and consideration.
    Last edited by fnaclew; 06-04-2009 at 01:11 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: formula in cell, how to show blank if 0

    Option 1:

    Go to Tools|Options and in the View tab uncheck Zero Values

    Option 2: Custom Format cells to : 0;-0;;@

    Option 3: Incorporate in Formula, e.g. =IF(Formula=0,"",Formula) where Formula is your actual formula
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-15-2006
    Posts
    26

    Re: formula in cell, how to show blank if 0

    Hi NBVC,

    Thank you.

    Options 2 & 3 I don't fully understand however option 1 appears to work so that's brilliant.

    Hopefully I can eventually acquire the knowledge to understand options 2 & 3.

    Again, many thanks.

    All the best.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: formula in cell, how to show blank if 0

    Go to first post -> edit -> Go advanced and make thread as [solved]

  5. #5
    Registered User
    Join Date
    11-15-2006
    Posts
    26

    Re: formula in cell, how to show blank if 0

    Quote Originally Posted by zbor View Post
    Go to first post -> edit -> Go advanced and make thread as [solved]
    Blimey, givvus a chance!

    Yep, was about to but chaps came back to depot for lunch so was otherwise engaged.

    Cheers.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: formula in cell, how to show blank if 0

    no mercy

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: formula in cell, how to show blank if 0

    For option 2, you would select the cell(s) to "hide zeroes" from and go to Format|Cells and then select Custom from the categories on the left... then paste the format I showed in the Type field...

    For option 3, you would alter your existing formula(s) to include the "0" trap....

    e.g. If your current formula is =A1*B1 and you want to hide the result of 0, if it occurs, then you would change the formula to: =IF(A1*B1=0,"",A1*B1). This says if A1*B1 is 0 then return a null (leave cell blank) otherwise return the actual result.

    Hope that helps.

  8. #8
    Registered User
    Join Date
    10-09-2014
    Location
    York, PA
    MS-Off Ver
    2010
    Posts
    5

    Re: formula in cell, how to show blank if 0

    I know this thread is extremely old, but it's right up my alley. I am trying to work with a formula that has nested IF statements. The formula I'm using is returning the correct values, but what I also want it to do is return a blank cell if the value in I3 is 0. Any suggestions? Here's my formula:
    Please Login or Register  to view this content.
    Any help you can all provide I would appreciate.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: formula in cell, how to show blank if 0

    Hi Ethere, welcome to the forum

    yes, it is old, and unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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