LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Interpolation

Here is a user-defined function that will do it. 'dt3' is the date for
which you want a value that falls between val1 and val2.

Function Interpolate(dt3 As Date, dt1 As Date, dt2 As Date, _
val1 As Double, val2 As Double) As Double
Interp = (dt2 - dt3) / (dt2 - dt1) * val1 + (dt3 - dt1) / (dt2 -
dt1) * val2
End Function

Hth,
Merjet

 
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
Interpolation? Mel Excel Worksheet Functions 1 June 1st 10 04:09 PM
interpolation serching table[_2_] Excel Worksheet Functions 3 January 30th 08 10:31 AM
interpolation atatari New Users to Excel 3 February 23rd 06 07:58 PM
interpolation atatari Excel Discussion (Misc queries) 0 February 13th 06 03:49 AM
help with interpolation and limit of interpolation uriel78 Excel Discussion (Misc queries) 0 February 17th 05 04:27 PM


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