+ Reply to Thread
Results 1 to 3 of 3

How to get Excel to ignore blank or #N/A cells when plotting a line chart?

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Smile How to get Excel to ignore blank or #N/A cells when plotting a line chart?

    Hey guys,

    I've been trying to figure this out for a while but I can't seem to plot a line graph without Excel including the cells that are either blank or labelled "#N/A". Since my goal with this was to make the chart dynamic and changing constantly over time, I wanted to allow the graph to only include the numbers plotted and nothing more (including the extra dates).

    I've included a sample of what I'm working on right now. What I wanted to see was the graph at the bottom starting from 12/30/2005, not the 1998 date that I've specified earlier in the chart.

    Thanks for all the help provided!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: How to get Excel to ignore blank or #N/A cells when plotting a line chart?

    Will the rows with #N/A or blank data be contiguous as in the example? In other words, once you find good data, start plotting from there? Is it possible that one of the metrics contains data while others contain #N/A or blank?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-30-2014
    Location
    Pittsburgh,PA
    MS-Off Ver
    Office 2010, Home Student 2013
    Posts
    62

    Re: How to get Excel to ignore blank or #N/A cells when plotting a line chart?

    Rather than changing the Index# values to #N/A to make your horizontal scale dynamic, change the Date values to #N/A instead.

    I used a dropdown box to select the start date of the chart in my attached, suggested solution. There are other methods to make the chart horizontal scale dynamic. Many tutorials use the OFFSET function, and I've frequently used INDEX+MATCH to achieve a dynamic horizontal scale.
    Attached Files Attached Files

+ 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. Plotting a line from a specified point on Y axis to a chart line
    By enanthate in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-12-2016, 09:00 AM
  2. Replies: 0
    Last Post: 08-13-2015, 12:05 PM
  3. [SOLVED] Plotting two sets of data with different dates on same line chart (Excel 2010)
    By archedjumpshot in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-29-2015, 01:05 PM
  4. Line chart should ignore blank data values
    By kenelder in forum Excel General
    Replies: 2
    Last Post: 06-10-2011, 03:50 AM
  5. Line Chart Question - break in line for blank cells
    By JonPugh in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 12-09-2009, 09:39 AM
  6. [SOLVED] scatter chart insists on plotting as a line chart
    By Knows too little in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-11-2005, 03:06 PM
  7. Plotting blank cells in line charts?
    By doogie in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-16-2005, 01:16 PM

Tags for this Thread

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