+ Reply to Thread
Results 1 to 2 of 2

Adjust formatting code for data labels to be blank when there is no values

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    191

    Adjust formatting code for data labels to be blank when there is no values

    Hi All,

    I would like for my data labels to auto adjust if there are no values. Currently this format code
    Please Login or Register  to view this content.
    will display $- when there are no values.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Adjust formatting code for data labels to be blank when there is no values

    Try it with this format string:

    _($* #,##0.00_);_($* (#,##0.00);;_(@_)

    The third term describes how zero values should be displayed, so in this case they will show as blank.

    Hope this helps.

    Pete

+ 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. Repeat labels on pivot table need help to adjust vba code
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2016, 07:33 AM
  2. Replies: 0
    Last Post: 07-21-2015, 10:26 PM
  3. [SOLVED] How to adjust chart size so all data labels can be viewed well?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-23-2015, 09:05 AM
  4. VBA code for conditional formatting Labels of a vertical bar chart
    By megaheinz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2015, 10:12 AM
  5. [SOLVED] Adjust this formula to return blank when a cell is blank?
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2013, 10:26 PM
  6. [SOLVED] Userform code for .find function to adjust cell data
    By creekybones in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-20-2012, 04:55 AM
  7. Hide X axis labels if its with a blank data
    By Rishi Rai in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-21-2012, 10:24 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