Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default interpolation within subranges

For a given running event, a table of points are associated with times. For
example:

Time Points
----------------
2:16 150
2:00 200
1:48 250
1:38 300
1:29 350
....
0:50 1200

What is the easiest approach to calculate the points for a time that falls
between two times in the table? A simple staightline interpolation within a
subrange is more than adequate. In other words, a performance of 2:08 falls
in the middle of the range 2:16 to 2:00, so the points would be in the
middle of 150 to 200, or 175 points.

Best,
Christopher


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default interpolation within subranges

Hi,

Suppose you put you times in E1:E100 and I'll call it T, and you scores in
F1:F100. And you enter the result in A4 then the following formula will
calculate the points.

=TREND(OFFSET(INDIRECT("F"&MATCH(A4,T,-1)),,,2),OFFSET(INDIRECT("E"&MATCH(A4,T,-1)),,,2),A4)


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Christopher Glaeser" wrote:

For a given running event, a table of points are associated with times. For
example:

Time Points
----------------
2:16 150
2:00 200
1:48 250
1:38 300
1:29 350
....
0:50 1200

What is the easiest approach to calculate the points for a time that falls
between two times in the table? A simple staightline interpolation within a
subrange is more than adequate. In other words, a performance of 2:08 falls
in the middle of the range 2:16 to 2:00, so the points would be in the
middle of 150 to 200, or 175 points.

Best,
Christopher



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default interpolation within subranges

=TREND(OFFSET(INDIRECT("F"&MATCH(A4,T,-1)),,,2),OFFSET(INDIRECT("E"&MATCH(A4,T,-1)),,,2),A4)

Perfect!

Best,
Christopher


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default interpolation within subranges

On Feb 12, 12:34 pm, "Christopher Glaeser" wrote:
What is the easiest approach to calculate the
points for a time that falls between two times
in the table? A simple staightline interpolation
within a subrange is more than adequate.


"Easiest" is a subjective term. Perhaps a TREND formula would be the
easiest expression to write.

Suppose the first two rows of your data below are in A3:B4. To
interpolate "points" for 2:08, put 2:08 into a cell (C1 here, although
the more natural place is in a new row between A3 and A4) and write:

=trend(B3:B4,A3:A4,C1)

Caveat emptor: Note that TREND and related functions use the slope
and intercept of a linear regression line that best fits the data. It
always works as you wish for 2 data points. But it might not give the
desired result for 3 or more data points, depending on what you
desire.


----- original posting -----

On Feb 12, 12:34*pm, "Christopher Glaeser" wrote:
For a given running event, a table of points are associated with times. *For
example:

Time * * * Points
----------------
2:16 * * * *150
2:00 * * * *200
1:48 * * * *250
1:38 * * * *300
1:29 * * * *350
...
0:50 * * *1200

What is the easiest approach to calculate the points for a time that falls
between two times in the table? *A simple staightline interpolation within a
subrange is more than adequate. *In other words, a performance of 2:08 falls
in the middle of the range 2:16 to 2:00, so the points would be in the
middle of 150 to 200, or 175 points.

Best,
Christopher


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default interpolation within subranges

"joeu2004" wrote:
Suppose the first two rows of your data below are in A3:B4. To
interpolate "points" for 2:08, put 2:08 into a cell (C1 here, although
the more natural place is in a new row between A3 and A4)


No: putting in a new row between A3 and A4 would cause problems.


and write:
=trend(B3:B4,A3:A4,C1)


Disregard this. I did not see Shane's superior response in Google Groups.
In fact, I do not even see my response there yet. Google Groups is having
problems today.
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
interpolation serching table[_2_] Excel Worksheet Functions 3 January 30th 08 10:31 AM
3D Interpolation EStewart Excel Worksheet Functions 0 February 1st 06 03:51 PM
Interpolation teen New Users to Excel 3 December 22nd 05 03:47 PM
Interpolation Bent Hansen Excel Worksheet Functions 3 November 4th 05 03:59 PM
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 03:18 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"