MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Sep 11th, 2002, 12:50 PM   #1
magell
 
Join Date: May 2002
Posts: 8
Default

I have a series of x and corresponding y values and need to find the values in between. An example:

X - values Y-values
1 34
2 31
5 29
9 25
15 18
17 17
18 13
22 8
25 2
26 1

How do I find an interpolated y-value for each x (1, 2, 3, 4, 5, 6, 7, etc)?
magell is offline   Reply With Quote
Old Sep 11th, 2002, 01:03 PM   #2
Andrew Poulsom
MrExcel MVP
 
Andrew Poulsom's Avatar
 
Join Date: Jul 2002
Posts: 31,599
Default

Look at the Forecast function in help.
Andrew Poulsom is online now   Reply With Quote
Old Sep 11th, 2002, 01:35 PM   #3
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,653
Default

Here are the first 15 rows...

******** ******************** ************************************************************************>
Microsoft Excel - Book1___Running: xl2000 : OS = Windows NT 4
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
E
F
G
H
I
1
X-valuesY-values*X-valuesY-values*VLOOKUPFORECAST*
2
134*134*3434.27674419*
3
231*231*3133.00930233*
4
529*331.74186*#N/A31.74186047*
5
925*430.47442*#N/A30.4744186*
6
1518*529*2929.20697674*
7
1717*627.93953*#N/A27.93953488*
8
1813*726.67209*#N/A26.67209302*
9
228*825.40465*#N/A25.40465116*
10
252*925*2524.1372093*
11
261*1022.86977*#N/A22.86976744*
12
***1121.60233*#N/A21.60232558*
13
***1220.33488*#N/A20.33488372*
14
***1319.06744*#N/A19.06744186*
15
***1417.8*#N/A17.8*
16
***1518*1816.53255814*
17
***1615.26512*#N/A15.26511628*
Sheet2*

[HtmlMaker 2.20] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


[ This Message was edited by: Mark W. on 2002-09-11 07:39 ]
Mark W. is offline   Reply With Quote
Old Sep 12th, 2002, 12:29 PM   #4
magell
 
Join Date: May 2002
Posts: 8
Default

Thank you! It works except for one thing; my x and y values are not linearly correlated, making the forecasted y-values not following the trend... For each x where I don't have a y-value, I would need to make an interpolation between the closest known y-values... have the feeling it's not such a big problem, but so far I haven't had any success..
magell is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 10:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.