Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 414
Default Change Line Width based on formula

Is it possible to change the line width (or color) based on a if-then statment?
For example: if the value of one line if hitting new lows for the day but
the value of another line is not hitting new lows for the day is it possible
to change the width or color of the first line because this condiition is
false?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Change Line Width based on formula

Hi,

This example demonstrates how to change the line above and below a datum.
http://www.andypope.info/charts/conditionalline.htm

It gets more complex if you do not want the datum line, which is masking the
fact that the other 2 lines are still continuous.
Without the datum you will need to include empty points in the addition
series to cause the lines to have gaps.

You might find this approach more manageable, which is to highlight the
specific points along the line rather than a segment of the line.
http://peltiertech.com/Excel/Charts/FormatMinMax.html

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"andy" wrote in message
...
Is it possible to change the line width (or color) based on a if-then
statment?
For example: if the value of one line if hitting new lows for the day but
the value of another line is not hitting new lows for the day is it
possible
to change the width or color of the first line because this condiition is
false?
Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 414
Default Change Line Width based on formula

This site is more of what I am looking for, thank you.
http://peltiertech.com/Excel/Charts/FormatMinMax.html

I have a data series that has over 1500 data points. There are mulitple
highs/lows in the data series. For the max/min values it is conecting all
the data points. Is there a way to only plot the numerical values? Here is
my formula:
=IF($B2=MAX($B2:$B$1563),$B2,NA())
Thanks!


"Andy Pope" wrote:

Hi,

This example demonstrates how to change the line above and below a datum.
http://www.andypope.info/charts/conditionalline.htm

It gets more complex if you do not want the datum line, which is masking the
fact that the other 2 lines are still continuous.
Without the datum you will need to include empty points in the addition
series to cause the lines to have gaps.

You might find this approach more manageable, which is to highlight the
specific points along the line rather than a segment of the line.
http://peltiertech.com/Excel/Charts/FormatMinMax.html

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"andy" wrote in message
...
Is it possible to change the line width (or color) based on a if-then
statment?
For example: if the value of one line if hitting new lows for the day but
the value of another line is not hitting new lows for the day is it
possible
to change the width or color of the first line because this condiition is
false?
Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to write function that will change column width based on a condition dunlapww Excel Discussion (Misc queries) 2 February 28th 07 05:40 PM
Custom Line Width in Line or Scatter Chart Marvin Charts and Charting in Excel 2 February 10th 07 05:44 PM
How can I change the width of the single border line for cells? Tracy Excel Discussion (Misc queries) 2 October 29th 06 04:36 PM
Change Line color based on 2 different cells lawdoggy Excel Discussion (Misc queries) 4 October 23rd 06 10:14 PM
Unwanted change in width of columns when showing formula. Erik Cardell New Users to Excel 2 April 11th 06 09:44 PM


All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"