Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 73
Default Display data points that are less than the chart trendline

I have a standard chart with an x and y axis and a linear trend line.

Is it possible to have the chart to only display the values that are less
than the trend line?

Thank you in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 99
Default Display data points that are less than the chart trendline

Hi,
Sure you can. Firstly, either hide your existing data points, or make them a
very pale grey colour.
Then, assume your x values are in A1:A10, and your y values are in B1:B10.
In say A12, calculate the slope of the trendline with =SLOPE(B1:B10,A1:A10)
and in say A13 calculate the intercept using =INTERCEPT(B1:B10,A1:A10)
In column C, calculate the corresponding y value for each x value from
column A, by entering in C1, = $A$12*A1+$A$13 and drag down.
Then in D1, enter =IF(C1B1,B1,NA()) and drag down. This will return either
a number or an #N/A error.
Add this last series to the chart, which should only plot the points with a
value. The #N/A errors wont be plotted.
Format the new series as you like, usually with the same marker as the
original, but a brighter colour than the pale grey of the original ones.

Dave


"Mally" wrote:

I have a standard chart with an x and y axis and a linear trend line.

Is it possible to have the chart to only display the values that are less
than the trend line?

Thank you in advance for your help.

  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 73
Default Display data points that are less than the chart trendline

Hi Dave

That worked great.

Thank you very much for your help.

Mally

"Dave Curtis" wrote:

Hi,
Sure you can. Firstly, either hide your existing data points, or make them a
very pale grey colour.
Then, assume your x values are in A1:A10, and your y values are in B1:B10.
In say A12, calculate the slope of the trendline with =SLOPE(B1:B10,A1:A10)
and in say A13 calculate the intercept using =INTERCEPT(B1:B10,A1:A10)
In column C, calculate the corresponding y value for each x value from
column A, by entering in C1, = $A$12*A1+$A$13 and drag down.
Then in D1, enter =IF(C1B1,B1,NA()) and drag down. This will return either
a number or an #N/A error.
Add this last series to the chart, which should only plot the points with a
value. The #N/A errors wont be plotted.
Format the new series as you like, usually with the same marker as the
original, but a brighter colour than the pale grey of the original ones.

Dave


"Mally" wrote:

I have a standard chart with an x and y axis and a linear trend line.

Is it possible to have the chart to only display the values that are less
than the trend line?

Thank you in advance for your help.

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
How do I display ratios of X and Y points on an Excel chart? client #9 Charts and Charting in Excel 1 April 2nd 08 05:08 AM
Lock Chart Display to last 14 days (or data points) toilinthedark Charts and Charting in Excel 1 September 21st 05 05:19 AM
Accessing values in points collection of chart & conditional display nnj Charts and Charting in Excel 1 August 3rd 05 10:29 PM
Trendline excluding last 2 data points of series Mary Ann Charts and Charting in Excel 2 June 15th 05 01:17 PM
Display negative data points differently. MRN Charts and Charting in Excel 1 December 19th 04 10:01 PM


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

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

About Us

"It's about Microsoft Excel"