+ Reply to Thread
Results 1 to 6 of 6

Thread: don't plot null "" value in bar chart

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2003, 2007, 2010
    Posts
    758

    don't plot null "" value in bar chart

    I am trying create a bar chart based on following data

    mon = 12
    tues = 22
    wed = ""
    thurs = 30
    fri = 18


    I have created the chart but the value for wed continues to show up in the chart. The value for wednesday is null/empty, which means, for example, the office was closed that day. When I create the chart, I only want to see mon, tues, thurs, and fri along the x axis. Is there a way to not plot if the value is null without having to delete or hide the column for wed? Thanks in advance for any comments.

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,150

    Re: don't plot null "" value in bar chart

    Is there a way to not plot if the value is null without having to delete or hide the column for wed?
    In short, no. If there is a category, it will be plotted. If you hide it, it won't.

    The only way to avoid deleting or hiding the data is to build a new table that contains only the data you want to plot and build the chart off that.

  3. #3
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    263

    Re: don't plot null "" value in bar chart

    Not sure if this helps, Excel doesn't plot
    =NA()
    functions. I use that instead of "" when it comes to charting.

  4. #4
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,150

    Re: don't plot null "" value in bar chart

    quekbc, you will still see an empty category for that value. In order to prevent an empty category, you need to either hide the value or create a table that has only the data you want to plot.

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2003, 2007, 2010
    Posts
    758

    Re: don't plot null "" value in bar chart

    I am getting the same charting result whether I use "" or =NA(). I searched some other forums and getting same answer that teylyn mentioned. It does appear you can't prevent an empty category from appearing in chart. If anyone can think of anything thing else I could try, much appreciated. Attached is chart example with desired result if needed.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    263

    Re: don't plot null "" value in bar chart

    Ahh, my bad, didn't see that it's a bar chart. The NA thing worked for a scatter plot.

    As teylyn mentioned, I'd create another table to address it... and then maybe use a dynamic named range to only take relevant values.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0