Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 100
Default Gradient and intercept on data with errors

Hi,

When I plot a calibration graph (concentration vs response) and add a trend
line, Excel will show the gradient and intercept of the line. I normally
capture these in a couple of cells, either using the SLOPE and INTERCEPT
functions, or using LINEST.

Sometimes, however, there is a data point missing, and although the chart
will continue to give the gradient and intercept, the functions give either
#N/A or #VALUE errors.

I've tried getting the missing data points to return #N/A or "", but can't
seem to get it to work.

Any ideas, please?

Thanks

Dave

url:http://www.ureader.com/gp/1042-1.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Gradient and intercept on data with errors

I know it is ugly but here is the answer:
=IF(ISERROR(LINEST(B2:B5,A2:A5)),NA(),LINEST(B2:B5 ,A2:A5))
But SLOPE and LINEST should return NA() if a cell has =NA()
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Dave Curtis" wrote in message
.. .
Hi,

When I plot a calibration graph (concentration vs response) and add a
trend
line, Excel will show the gradient and intercept of the line. I normally
capture these in a couple of cells, either using the SLOPE and INTERCEPT
functions, or using LINEST.

Sometimes, however, there is a data point missing, and although the chart
will continue to give the gradient and intercept, the functions give
either
#N/A or #VALUE errors.

I've tried getting the missing data points to return #N/A or "", but can't
seem to get it to work.

Any ideas, please?

Thanks

Dave

url:http://www.ureader.com/gp/1042-1.aspx


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 100
Default Gradient and intercept on data with errors

Thanks Bernard,

Doesn't quite do what I need, though.
I realise that LINEST and SLOPE should return #N/A if any cells in the range
contain an error, but the chart will still give me values for the gradient
and intercept, and it's these values I need to generate in cells.

Dave

url:http://www.ureader.com/msg/104236284.aspx
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
Bug with gradient fills and max scale Marcus Charts and Charting in Excel 1 March 7th 07 01:58 PM
Calculating slope, intercept, LOGEST with empty cells in data Rich Excel Worksheet Functions 1 November 23rd 05 04:27 AM
Cell Gradient dtutterow Excel Discussion (Misc queries) 0 November 20th 05 01:02 AM
Gradient of line chart Robert Hargreaves Charts and Charting in Excel 2 June 5th 05 06:44 PM
plot 10 data pts in least square fit to find slope and intercept engineeringdoll Excel Worksheet Functions 1 April 14th 05 01:56 PM


All times are GMT +1. The time now is 08:59 PM.

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"