+ Reply to Thread
Results 1 to 5 of 5

How to create a chart that ignores blank cells?

  1. #1
    Forum Contributor
    Join Date
    07-09-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    257

    How to create a chart that ignores blank cells?

    How to create a chart that ignores blank cells?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: How to create a chart that ignores blank cells?

    I typically use formula to return #N/A which will be ignored in chart.

    You can use =NA()

    Other than that, can you upload sample file?
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: How to create a chart that ignores blank cells?

    This is the most comprehensive essay on how charts treat blank (including those that look blank but are not really blank) cells that I am aware of: https://peltiertech.com/mind-the-gap...g-empty-cells/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: How to create a chart that ignores blank cells?

    I'm assuming a few things here.
    1) you have chart data that varies - otherwise you simply do not cover the range with the blanks.
    2) it might be complex and you are willing to go with complex (VBA) solutions.

    The way I do it is I set up a formula that shows whether or not the chart data area is greater than zero. This is a simple =C21>0 if it is then TRUE, if not then FALSE.
    Next, I set up a table name for the range and I name it TrueFalseRange (subsequent ones I add a number to the end).
    Then I set up a macro.
    HTML Code: 
    Where "calculations" is the tab name where the data and the true false ranges are that are in the graphs.
    Then I have dropdowns in the graphs where the person can select different locations and for the macros to work on the graphs and right click and pick assign macro and assign to the MacroHideUnhide so the macro functions for the graph. Finally you have to save it as a macro enabled workbook.
    This macro will hide the rows where the data is 0 and it will disappear from the graphs.
    <><><><><>
    if this isn't what you are looking for you'll have to be more specific with your question.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: How to create a chart that ignores blank cells?

    Of course it took a while for me to type the reply and while doing you've had two very good responses. I like CK76s reply and may give that a try in the future and will have to look at MrShorty's reply.

+ 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] Nested IF formula that ignores blank cells
    By si.mon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-22-2018, 06:19 AM
  2. Dynamic Print Area that ignores blank cells containing formulas
    By ms.mount in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 07-03-2017, 05:46 PM
  3. creating a chart that ignores #N/A cells
    By maamounao in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2016, 10:12 AM
  4. [SOLVED] Dynamic Range in Column Chart That Ignores Blank and With-Formula Cells
    By ykobure in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2015, 08:57 AM
  5. [SOLVED] Need specifically return #n/a if cell is blank so chart ignores next value
    By nigelog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2015, 09:14 AM
  6. Replies: 2
    Last Post: 07-11-2012, 08:58 AM
  7. Data Validation List That Ignores The Blank Cells
    By nevi in forum Excel General
    Replies: 4
    Last Post: 06-12-2008, 03:54 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