+ Reply to Thread
Results 1 to 6 of 6

Hide zero values but keep number format

Hybrid View

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    2

    Hide zero values but keep number format

    Now i'm using 0;;;@ in Format Cells to hide zero values. When there is an entry in the cell the number appears, but not in number format (with decimals). Is there a way to hide zero values but keep the number format?

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Hide zero values but keep number format

    hesa could you provide a bit more detail as to what you're data looks like and what you're trying to achive.

    You're stating you don't want to view zero values but you want to see decimals.

    Are you suggesting that

    4.0 should be displayed as 4
    But
    4.1 should be displayed as 4.1?

    OR

    Are you asking that in your cells you have blank value if it's a zero value, but if it's not then you want to format as number with decimal places?

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    2

    Re: Hide zero values but keep number format

    The second case. Zero values should be displayed as blank cells and other numbers should be in decimal format.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Hide zero values but keep number format

    If it's a set number of decimals you want, then just add that to the custom format:
    0.00;;;@

    If you want the number of decimals to vary, then you can use question marks up to the maximum you want - note that the decimal point will then always line up:
    0.??;;;@
    will give
    1.
    1.1
    1.23
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Registered User
    Join Date
    10-19-2012
    Location
    belgie
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Hide zero values but keep number format

    You don't need custom formatting for that. This is just an option for the worksheet. Go to Excel options > advanced. There you can find "Display options for this worksheet". Uncheck "show a zero in cells that have zero value". You can do this for every sheet in your workbook.

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Hide zero values but keep number format

    As above, both cases work, just depends if in other circumstances (or other columns) you do want to see the zero values

+ 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 Zero values, and preserve number formatting for non-zero
    By dejhantulip in forum Excel General
    Replies: 3
    Last Post: 01-29-2015, 07:54 PM
  2. Copy and Paste Values as Number Format
    By DanielGordo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2014, 10:13 PM
  3. Paste values in a column, then apply custom number format
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 05:17 AM
  4. number format hide and undo vba coding
    By ravergirl7216 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2010, 02:47 AM
  5. Macro to change number format of cell values
    By Sean Anderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2007, 12:24 AM
  6. Custom Number Format: Resistor Values
    By benstreek in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-17-2006, 07:37 AM
  7. How do I hide zero values but keep currency format in P.O. form?
    By Mamarita in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-09-2006, 07:55 PM

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