+ Reply to Thread
Results 1 to 5 of 5

Hide legend names if value is Zero

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Islamabad, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    7

    Hide legend names if value is Zero

    Hello Friends
    I am trying to create a chart that show only series names of data that has value more than zero. I am attaching an example file here. in the data in D and H zero value, therefore, I would like that on the chart series name D and H should not be visible and if the value in either D or H increase above Zero than it should be visible.



    Can some one help me with this?

    Sorry if this question has been addressed already.

    thanks in advance

    Zubair
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Hide legend names if value is Zero

    Those are Category names rather than series.
    As the empty, or zero data, categories are in the middle of the data set the simplest approach would be to filter the data.

    Or use complex formula to rebuild chart data set excluding rows with zero data
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Islamabad, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Hide legend names if value is Zero

    Thank you Andy for the reply and correction. Yes filtering is an option but since my original data set comprises of large number of categories and the data will keep on updating every month
    therefore it may not be an easy solution to apply filter every time.

    could you help me provide the formula in such case.

    thank you in advance.

    Zubair

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Hide legend names if value is Zero

    The attached has a new matrix of chart data. The amount of data is determined by the 4 named ranges.

    Use the Select Data dialog on the chart to see the usage of named ranges to define source of each series' data
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    Islamabad, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Hide legend names if value is Zero

    Dear Andy
    Thanks a lot, really helpful indeed.

    best regards

    Zubair

+ 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. Hide Legend in Pivotchart
    By jas229535 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-21-2019, 07:32 PM
  2. [SOLVED] Hide legend items in a graph when associated value = zero or blank
    By bdicarlo1 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 06-07-2018, 06:44 AM
  3. Hide Legend if There is no Data
    By shamsul in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-04-2016, 09:46 AM
  4. How do I hide 1 series in legend
    By wanluo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-29-2007, 12:41 PM
  5. [SOLVED] Hide series names for unused data from chart legend
    By Neil Goldwasser in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-10-2006, 03:15 PM
  6. [SOLVED] Can I remove just one title within a graph legend and not hide th.
    By KLF in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-07-2005, 03:05 PM
  7. How do I label my legend box names
    By gregoryrichards in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-06-2005, 05:33 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