+ Reply to Thread
Results 1 to 8 of 8

Hide chart bar if zero values

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Hide chart bar if zero values

    Hi,

    I want to hide bar if it has zero value.

    Rep 1 - $5000
    Rep 2 - $3000
    Rep 3 - $0
    Rep 4 - $4000

    The chart should have only 3 bars for Rep 1, Rep 2 and Rep 4. I don't want to show zero value bar. Is it possible?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hide chart bar if zero values

    you can untick zero-values in Horizontal (Category) Axis Labels

    zero.jpg

  3. #3
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Re: Hide chart bar if zero values

    Thanks Sandy for your response.
    It looks like manual work every time. Is there any way for dynamic?

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hide chart bar if zero values

    maybe with VBA because 0, #N/A or blank cell will give a gap on the chart
    also you can hide this row, but this is not automatic
    Last edited by sandy666; 07-26-2017 at 06:52 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,087

    Re: Hide chart bar if zero values

    You could create another table that pulls only non-zero rows from the data and uses that as the chart's source data.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Re: Hide chart bar if zero values

    Yes, Ali's suggestion is very best.
    Thank you both Ali and Sandy.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,087

    Re: Hide chart bar if zero values

    You're welcome!

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hide chart bar if zero values

    welcome and thanks

+ 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 chart data & chart
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2014, 01:47 PM
  2. Pie Chart Help - I Want To Hide Values/Use Values But Not Show In Chart
    By RandomlySet in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-17-2013, 12:54 PM
  3. Hide data labels with low values in a chart
    By Gert Van Dessel in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-02-2013, 03:27 AM
  4. How to hide 0 chart values?
    By toplisek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-20-2012, 08:02 AM
  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. chart disappears when I hide columns with values
    By mufan in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-11-2011, 12:09 PM
  7. [SOLVED] how to hide zero values on line chart
    By MikeM in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-07-2005, 09:05 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