+ Reply to Thread
Results 1 to 6 of 6

Hide formula blanks in chart

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003-2010
    Posts
    56

    Hide formula blanks in chart

    I have a data table to plot figures that are generated from other data using formulas. For some points there is no data so it shows blank. As it is not a true blank cell the chart is dropping to zero. I have tried the ignore blanks option in the chart settings - showing it as NA, NA() and #NA but it still plots. Can anyone tell me how to stop this happening?

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

    Re: Hide formula blanks in chart

    If the chart is column or bar then the category space will still be present. You would either need to hide the row on the worksheet or create another contiguous data set for the chart excluding unwanted rows.

    If the chart is a line chart then =NA() will cause the data marker to be omitted. If the cells with =NA() are at the front or back of the data series then the line will be truncated. If in the middle the line will not be broken but instead interpolated between valid data points. If the line drops to zero then it's possible you have the stacked line subtype.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Hide formula blanks in chart

    It depends somewhat on chart type you are using.
    But NA() is appropriate for scatterplots (XY plot) (Sounds like you are using this chart type) - formulas like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    should do the job for you.
    Best Regards,

    Kaper

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,757

    Re: Hide formula blanks in chart

    #n/a
    should work
    as should na()

    can you post a sample sheet with the issue please
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    06-04-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003-2010
    Posts
    56

    Re: Hide formula blanks in chart

    Using #N/A did work, the issue was I wrote it in the formula as "#N/A". Thanks for the help

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,757

    Re: Hide formula blanks in chart

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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 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
  2. Modify VBA code to hide blanks rows
    By Ranew in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2011, 09:33 AM
  3. Replies: 2
    Last Post: 06-07-2010, 09:23 PM
  4. Chart plots blanks and #N/A as zero
    By tania_del in forum Excel General
    Replies: 1
    Last Post: 04-21-2010, 02:24 PM
  5. [SOLVED] Hide show blanks
    By PCOR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2005, 05:19 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