+ Reply to Thread
Results 1 to 8 of 8

How to make a cell invisiable without deleting the formula.

  1. #1
    Registered User
    Join Date
    11-02-2006
    Posts
    47

    Cool How to make a cell invisiable without deleting the formula.

    I'm trying to have a cell become invisible if it is equal to zero. But I don't want to have the formula erased in that cell. How can I do this? I've attached an example of what I want to do. "Day1" is where I want to enter the numbers. "1" is where I want the zeros to become invisible. And, "Diesel" is where I want the totals to show. If you can help me, thanks.

    Cellar Webs
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this in C2 copied down and across:

    Please Login or Register  to view this content.
    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-02-2006
    Posts
    47

    Thanks!

    NBVC,
    Thanks for the help! It works great.
    Cellar Webs

  4. #4
    Registered User
    Join Date
    11-02-2006
    Posts
    47
    NBVC,

    Is there some way to have the cells become invisible if they equal zero on "Day1"? Maybe I have to use a macro. I don't know. I want the computer to erase all the zeros without erasing the format of the cells. Your code worked great for what I wanted to do before, thanks.

    Cellar Webs

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    There are a few ways.

    1. You can update your formulas in Day1 to be part of an If() statement such as the one I gave you before....e.g. =IF(your_formula=0,"",your_formula) where your_formula is your current formula residing in the cells.

    2. A more global way is to go to Tools|Options and in the View tab uncheck the "zero values" checkbox.

    3. With Conditional Formatting. Select the entire range. Go to Format|Conditional Formatting and select Cell Value Is >> equal to >> =0
    Then click Format and from the Font tab, select White from the colour pallet to match your sheet background. Click Ok. Click Ok again.

    4. Select cells go to Format|Cells and select Custom from the Number tab. Enter: 0;-0; as type
    Last edited by NBVC; 06-05-2007 at 04:40 PM.

  6. #6
    Registered User
    Join Date
    06-05-2007
    Location
    montreal
    Posts
    3

    not show zero when zero equal nothing

    hi, I have the same question, but with a different formula. All I want to do is to add all my cells in the same row together, but if the total is zero I want it to show nothing.

    Something basic as =SUM(A1:A10)

    Thank you in advance !

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by marcus23x
    hi, I have the same question, but with a different formula. All I want to do is to add all my cells in the same row together, but if the total is zero I want it to show nothing.

    Something basic as =SUM(A1:A10)

    Thank you in advance !

    =IF(SUM(A1:A10)=0,"",SUM(A1:A10))

  8. #8
    Registered User
    Join Date
    11-02-2006
    Posts
    47
    NBVC

    I went with option #2. Thanks again.

    Cellar Webs

+ 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