Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Lex Lex is offline
external usenet poster
 
Posts: 5
Default Regions of Constant Slope

I have a set of data x, y and want to find regions (or ranges) of "constant"
slope and I want the value of the slope and range x of that "constant" slope.
I'm not exactly sure what I mean by "constant" (note the quotes) but believe
I *may* be able to use RSQ (R-Squared) to define it.

I *believe* I may have to do it in VBA as I want to automate it - but again
- I'm not sure.

Your help is greatly appreciated.

Thank you!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 66
Default Regions of Constant Slope

The slope between data points can be defined by:

slope = (y2 - y1) / (x2 - x1)

So say your x data is in column A (say A2:A11) and y data in column B (say
B2:B11), the slope between the first 2 points can be defined by a formula in
C3:

=(B3-B2)/(A3-A2)

If you drag fill this formula down to C11, it will give you the slope
between successive pairs of data. Any 2 (or more) successive slope values
that are equal define a region of constant slope. (Since any 2 x.y points can
be joined by a straight line - or constant slope - then you really need at
least 3 x,y points which are joined by the same straight line to define a
'region' of constant slope.)

You can graph the data, using a line graph, to get a quick visual
confirmation of these regions.

Regards,

Tom


"Lex" wrote:

I have a set of data x, y and want to find regions (or ranges) of "constant"
slope and I want the value of the slope and range x of that "constant" slope.
I'm not exactly sure what I mean by "constant" (note the quotes) but believe
I *may* be able to use RSQ (R-Squared) to define it.

I *believe* I may have to do it in VBA as I want to automate it - but again
- I'm not sure.

Your help is greatly appreciated.

Thank you!

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
Area chart with multiple regions Steven Charts and Charting in Excel 1 November 4th 09 08:08 PM
How do I draw a quadrant with coloured regions in Excel? Sarabjit Excel Discussion (Misc queries) 3 June 29th 07 01:18 PM
Defining Regions with Names Elise148 Excel Discussion (Misc queries) 3 June 13th 07 02:19 PM
How to find non-blank cell values "hidden" under merged regions? david.karr Excel Discussion (Misc queries) 7 April 7th 07 11:35 PM
Locking rows or Regions in Excel worksheets Pat Dools Excel Worksheet Functions 0 August 11th 06 03:00 PM


All times are GMT +1. The time now is 10:54 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"