Prevent Line Chart showing future months

Andrew Watson

New Member
Joined
Feb 3, 2016
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello all,

First and foremost, I hate charts with a passion as they never seem to work for me.

I have line graph that I use to show my select local Vendors DIFOT rates. The data is taken from the top table (I also have a slicer in this so I can segregate each vendors rate easily) which in turn comes from another tab where the data is collated with all of our Vendors. The formula used to obtain the monthly DIFOT percentage for example is =IFERROR($K$3/($K$3+$L$3),"") where K equals the count of orders delivered on time and L equals the count of orders not delivered on time.

When I made the Chart (which also works off the slicer) all the Vendors drop down to a zero rate for the future months. I don't want the chart lines to extend beyond the current month to make the chart look better. I've tried searching pretty hard for a solution to this (in fact I know I have done this previously in another chart) but for the life of me I can't figure it out again.

Can anyone lend a hand so I don't burn anymore time on this.

Chart query.jpg
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello, try to use NA() function to your advantage, i.e. instead of leaving the future months blank make sure that the relevant cells are filled with #N/A as these should not be displayed in a graph.
 
Upvote 0

Forum statistics

Threads
1,226,116
Messages
6,189,054
Members
453,523
Latest member
Don Quixote

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