A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

change color of curve line as time changes



 
 
Thread Tools Display Modes
  #1  
Old December 8th, 2009, 12:00 AM posted to microsoft.public.excel.charting
cliffordjf
external usenet poster
 
Posts: 12
Default change color of curve line as time changes

I have a series of values associated with dates; the values in the past are
fact, the values in the future are estimates. When I graph the data, the
line is all the same color throughout the series. Is there a way to have the
color of the line change as the dates become past, rather than future....

in other words, the line is black through todays data, but turns to red from
tomorrow on, then as tomorrows comes, that part of the line turns from red to
black...

thanx

cjf
  #2  
Old December 9th, 2009, 02:11 AM posted to microsoft.public.excel.charting
Bernard Liengme
external usenet poster
 
Posts: 4,085
Default change color of curve line as time changes

You will need two series. Suppose dates are in A2:A100, values to plot in
B2:B100
In C1 use =IF(A1=TODAY(),B2,NA())
In D1 use =IF(A1TODAY(),B2,NA())
Copy both down their columns
Quickest way is to select all data and make your chart, then delete the line
in the cart for column B (or use CTRL to select A, C and D)

Visit Jon Peltier and look at his 'conditional chart' material
http://peltiertech.com/Excel/Charts/...nalChart1.html

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"cliffordjf" wrote in message
news
I have a series of values associated with dates; the values in the past
are
fact, the values in the future are estimates. When I graph the data, the
line is all the same color throughout the series. Is there a way to have
the
color of the line change as the dates become past, rather than future....

in other words, the line is black through todays data, but turns to red
from
tomorrow on, then as tomorrows comes, that part of the line turns from red
to
black...

thanx

cjf


  #3  
Old December 30th, 2009, 05:28 AM posted to microsoft.public.excel.charting
Herbert Seidenberg
external usenet poster
 
Posts: 1,113
Default change color of curve line as time changes

Excel 2007, PivotTable, PivotChart
Three colors, one series.
With Macro.
http://c0444202.cdn.cloudfiles.racks...12_29_09b.xlsm
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.