Chart Line color

ApolloID

Well-known Member
Joined
Jun 8, 2010
Messages
769
Hi,

I have a 2d line chart, for all 12 months of the year. The problem is that the line drops from the curent month and may deceive somebody to think that the sales are dropping.

Is there any way to split the color of chart's line in two? ...from january till curent month, the color to be blue (like is now) and for the rest of the months (with 0 sales) the color to be white.

Or maybe the chart's line to be visible only till the curent month (including curent month)?

Can this be done?

Thank you!
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Asala42

Well-known Member
Joined
Feb 26, 2002
Messages
2,318
I assume your data range holds formulas. Even if you use if-statements to display blanks ("") or some other text, charts will try to plot this - treating these points as zeroes.

1 quick option, is to simply clear the formula cells from the extra months. Truly blank cells won't plot on a line chart. The drawback is you will have to recopy the formula down as new month's data come in.

Another method is to change the output for 0 sale months to na() (it should appear as #N/A in the output cell). These won't show in a line graph either, and there are methods to conceal these from the data table (conditional formatting or plotting a second near duplicate series)
 

Watch MrExcel Video

Forum statistics

Threads
1,126,893
Messages
5,621,484
Members
415,844
Latest member
Reda Fouad Ramzy

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
Top