Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pat
 
Posts: n/a
Default Linest/slope functions with with different data ranges

I want to get the slope for different data sets compared to the same X's. As
my samples don't necessarily have the same start date, the slope/linest
functions consider empty cells as part of the sample, and give me a wrong
result. Is there a way to force the functions to take into account only the
common data sets ?
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Slope and LINEST behave differently with empty cells. LINEST does not permit
empty cells or non-numeric values in the range, and will return an error if
they are present. Slope and Intercept do permit empty cells and non-numeric
values in the range and will ignore them if present.

If you have Excel 2003 be sure to patch to at least SP
http://support.microsoft.com/kb/834691

Otherwise, if you are detecting different behavior with Slope and Intercept,
then you are almost certainly passing an array formula to the function, which
is coercing empty cells to zeros. In that case, wrap your array formula
(inside the SLOPE call) in an IF statement, such as
IF(ISNUMBER(range),formula)

Jerry

"Pat" wrote:

I want to get the slope for different data sets compared to the same X's. As
my samples don't necessarily have the same start date, the slope/linest
functions consider empty cells as part of the sample, and give me a wrong
result. Is there a way to force the functions to take into account only the
common data sets ?

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 compare 2 sets of data and highlight differences? Perplexed1 Excel Worksheet Functions 1 July 9th 05 01:15 AM
Match and index functions: corrlating data from 2 worksheets [email protected] Excel Worksheet Functions 2 May 21st 05 05:38 AM
Help making a chart that doesn't graph cells without data? Filtration Guy Excel Discussion (Misc queries) 0 March 22nd 05 09:21 PM
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 04:49 PM.

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"