Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default interpolation routine for Excel

Has anyone written an interpolation function for Excel? I have an equation
that works, but it is a pain to edit and check each time. There should be a
way to standardize it for use with most tables.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default interpolation routine for Excel

The first function which I find when I type the word "interpolate" into
Excel help is FORECAST. Have you tried that?
--
David Biddulph

"Steve" wrote in message
...
Has anyone written an interpolation function for Excel? I have an
equation
that works, but it is a pain to edit and check each time. There should be
a
way to standardize it for use with most tables.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default interpolation routine for Excel

The FORECAST() function does a great job of linear interpolation as well as
forecasting.
--
Gary''s Student - gsnu200806


"Steve" wrote:

Has anyone written an interpolation function for Excel? I have an equation
that works, but it is a pain to edit and check each time. There should be a
way to standardize it for use with most tables.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default interpolation routine for Excel

Why not write a UDF that could be used in any file if you store it in
Personal.xls
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Steve" wrote in message
...
Has anyone written an interpolation function for Excel? I have an
equation
that works, but it is a pain to edit and check each time. There should be
a
way to standardize it for use with most tables.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default interpolation routine for Excel

The problem with forecast is that it does a linear regression of the line
through the points so that the line may not actually cross any of the points.
What many of us would like is a function that draws a straight line between
each individual point and extrapolates the value based on each line segment.

"Gary''s Student" wrote:

The FORECAST() function does a great job of linear interpolation as well as
forecasting.
--
Gary''s Student - gsnu200806


"Steve" wrote:

Has anyone written an interpolation function for Excel? I have an equation
that works, but it is a pain to edit and check each time. There should be a
way to standardize it for use with most tables.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default interpolation routine for Excel

On Thu, 9 Oct 2008 14:46:11 -0700, Brazell
wrote:

The problem with forecast is that it does a linear regression of the line
through the points so that the line may not actually cross any of the points.
What many of us would like is a function that draws a straight line between
each individual point and extrapolates the value based on each line segment.


Just set up your formulas to use the two points that straddle your unknown.
--ron
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default interpolation routine for Excel

Unfortunately that equation can get a little hairy and can exceed some of the
limitations for formulae. At least any formula that I have seen.

"Ron Rosenfeld" wrote:

On Thu, 9 Oct 2008 14:46:11 -0700, Brazell
wrote:

The problem with forecast is that it does a linear regression of the line
through the points so that the line may not actually cross any of the points.
What many of us would like is a function that draws a straight line between
each individual point and extrapolates the value based on each line segment.


Just set up your formulas to use the two points that straddle your unknown.
--ron

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default interpolation routine for Excel

On Fri, 17 Oct 2008 07:31:02 -0700, Brazell
wrote:

Unfortunately that equation can get a little hairy and can exceed some of the
limitations for formulae. At least any formula that I have seen.


It's hard for me to deal in these kinds of hypotheticals. But if you have a
data table, it's usually easy enough to find the appropriate values for which
to use the FORECAST function by using one or more of the lookup functions, or
by using the combination of INDEX and MATCH.
--ron
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default interpolation routine for Excel

The percentile(-rank) formulas also have built-in interpolation which can be
combined in a simple and efficient way. With the general set up of x and y
values in columns a and b and a lookup value z in cell c1, try entering:

=percentile(b:b,percentrank(a:a,c1,30))

(the 30 just ensures full precision is used in the calculation). This
formula applies to any increasing x and y values, which accounts for many
cases of interest, and does not depend on the order of x or y. With a
decreasing trend you can use "1-percentrank" in the formula instead.

For greater precision (cubic) curves can be used to join points:

=trend(y,((max(rank(z,(z,x)),2)-rank(x,x)-0.5)^2<3)*x^{0,1,2,3},z^{0,1,2,3},0)

(which is an extension of the general linear case using 3's in place of
1's). Plotting this for a range of z values should show a very good fit to
the data. HTH.

"Steve" wrote:

Has anyone written an interpolation function for Excel? I have an equation
that works, but it is a pain to edit and check each time. There should be a
way to standardize it for use with most tables.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default interpolation routine for Excel

Hello,

If you like to use a UDF:
http://www.sulprobil.com/html/interpolate.html

Regards,
Bernd


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default interpolation routine for Excel

That is perfect! Thanks!

"Bernd P" wrote:

Hello,

If you like to use a UDF:
http://www.sulprobil.com/html/interpolate.html

Regards,
Bernd

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 to do a Linear interpolation in excel? Ines Excel Worksheet Functions 1 May 17th 07 07:10 PM
Converting a Access routine into an Excel macro? turtle[_2_] Excel Discussion (Misc queries) 2 February 21st 07 06:38 PM
how can I use excel to automatically generate routine report? scott Excel Worksheet Functions 0 December 29th 05 09:02 PM
help with interpolation and limit of interpolation uriel78 Excel Discussion (Misc queries) 0 February 17th 05 04:27 PM
interpolation in excel Elif Excel Worksheet Functions 2 January 7th 05 10:12 AM


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