Don't Chart/Graph Cells With Formula That Returns Blank

xtinct2

New Member
Joined
Nov 22, 2014
Messages
7
Hi,

I have a line chart with an x-axis of Jan-Dec.
The data that the chart is pulling from will be updated each month
For months with no data (i.e. future months) I don't want the chart to plot those (non-existent) points -- so I'd like for the chart to cut off after the current month.

-I first had the formula for future months result in 0, but the chart plots it at 0 (makes sense)
-I then had the formula for future months return "" since I know a chart doesn't plot blanks, but the chart plots it at 0
-I then had the formula for future months return #N/A since I know a chart doesn't plot blanks, but the chart plots it at 0

I'd rather not make the cells truly blank b/c that would involve me having to drag over the formula each month -- and I'd rather set it and forget it.

Is this possible?

Thank you so much! :)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi

Just define a dynamic range that does not include future months, and that will automatically update when you include the value for a new month.

This is an example by Jon Peltier:

Create a Dynamic Chart
 
Upvote 0
Hi

Just define a dynamic range that does not include future months, and that will automatically update when you include the value for a new month.

This is an example by Jon Peltier:

Create a Dynamic Chart

Thanks

However, I don't want to resize the chart -- i want to show the fwd months, but have the line end at the current month

Still possible?
 
Upvote 0
With Excel 2013 I can get data to display as you want on the chart by using =NA() for the future months.

Select the chart. From the right-click pop-up menu, click on 'Select Data...'. In the lower left-hand corner of the Select Data Source dialog box, click on the button labeled 'Hidden and Empty Cells'.

In the new pop-up dialog, select 'Show empty cells as: * Gaps', then click 'OK'.

I think there's a similar setting available in 2010. I'm pretty sure Excel versions released after Excel 2013 also have that same setting.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top