+ Reply to Thread
Results 1 to 9 of 9

How to force individual cells to display zero when worksheet option is ...

  1. #1
    Registered User
    Join Date
    10-27-2019
    Location
    NYC
    MS-Off Ver
    Office 365
    Posts
    4

    How to force individual cells to display zero when worksheet option is ...

    Hello,

    I've done a bit of googling and can't find the answer so I figured I would ask the experts

    I have a worksheet with options > advanced > display options for worksheet > show a zero in cells that have zero value disabled, so my worksheet isn't filled with zeros all over the place.

    However, there are a very small number of calculation cells where I would like to see a zero if that is the value, instead of having the cell stay blank.

    Everything I have found online describes how to display zeros if you have them hidden through cell formatting, which I do not. I am reluctant to change my cell formatting for the entire worksheet just to un-change them for a few cells--the worksheet contains a variety of custom cell formats, is too large, and works too well as is to change cell formatting in this way.

    I've done a little quick experimenting with cell formats to see if there was a way to force zeros that way, but I could not find a solution.

    Anyone have any thoughts how to accomplish this without changing the worksheet display setting?

    Many thanks in advance.
    Last edited by AliGW; 10-29-2019 at 06:40 PM. Reason: Solved tag correctly applied.

  2. #2
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    threephi,

    could you attach an example of what you're working with and show your desired results? That's much easier than us trying to recreate the wheel.

    Bottom right hand corner, Go Advance >(scroll down) Manage Attachments > select the file you want to attach

  3. #3
    Registered User
    Join Date
    10-27-2019
    Location
    NYC
    MS-Off Ver
    Office 365
    Posts
    4

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    Hi jme1013,

    Thanks for the reply. The issue can very easily and quickly be investigated in a new blank workbook:

    Open a new blank workbook
    File menu > options > advanced > scroll down to "Display options for this worksheet" > uncheck Show a zero in cells that have a zero value (as shown in this screen cap)
    excel zeros.png

    put 0 in any cell

    My question is: Is there a way to force individual cells to display zero values without changing the global display option?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    No, not to my knowledge. However, you can force zeroes not to show.

    You would be better off changing the global setting back and then controlling the visibility of zeros via your formulae and cell formatting.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    Hi -

    One option you might try is to use Conditional Formatting. Create a new rule for the entire spreadsheet that says if a cell value equals zero, display a blank. Just click the upper left corner of the spreadsheet grid area to select all cells, then create the new rule. Where it asks for your format, just go to Custom Format, pick the numeric format that is already there that displays zeroes and "-", and edit it to "". Finally, select the cells you want to display zeroes and create a new rule for those cells. The rule would be for cells that equal zero, then just pick any numeric format you want.

    Hope that helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    You can custom-format any cell to not show zero, e.g.

    General;-General;

    0.0_);(0.0);
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    10-27-2019
    Location
    NYC
    MS-Off Ver
    Office 365
    Posts
    4

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    Quote Originally Posted by loginjmor View Post
    Hi -

    One option you might try is to use Conditional Formatting. Create a new rule for the entire spreadsheet that says if a cell value equals zero, display a blank. Just click the upper left corner of the spreadsheet grid area to select all cells, then create the new rule. Where it asks for your format, just go to Custom Format, pick the numeric format that is already there that displays zeroes and "-", and edit it to "". Finally, select the cells you want to display zeroes and create a new rule for those cells. The rule would be for cells that equal zero, then just pick any numeric format you want.

    Hope that helps.
    Thanks loginjmor, this seems like the best available option, although a bit kludgy.

  8. #8
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    It is a bit kludgy. Sorry.

  9. #9
    Registered User
    Join Date
    10-27-2019
    Location
    NYC
    MS-Off Ver
    Office 365
    Posts
    4

    Re: How to force individual cells to display zero when worksheet option is set to hide zer

    Quote Originally Posted by AliGW View Post
    No, not to my knowledge. However, you can force zeroes not to show.

    You would be better off changing the global setting back and then controlling the visibility of zeros via your formulae and cell formatting.
    Thanks also AliGW

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Hide Zeros without using a filter ad display rows with values > 0
    By pmw19800 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 02-23-2019, 06:22 AM
  2. [SOLVED] Hide individual cells, but keep rows and sheet as is
    By Shruder in forum Excel General
    Replies: 7
    Last Post: 01-17-2019, 01:07 PM
  3. Replies: 10
    Last Post: 11-12-2015, 01:52 AM
  4. Use Drop-Down Option to Hide Rows in different worksheet
    By dmig in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 02:09 PM
  5. HIDE ZEROS IN CHART - Hide rows of cells that equals zero
    By sweedey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2011, 08:18 PM
  6. How to force the display of trailing zeros in variables?
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2011, 11:53 PM
  7. Replies: 2
    Last Post: 02-22-2008, 11:18 AM

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