Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 837
Default interpolate

Assuming that your data are in A1:B11, then C2 can be calculated as

=FORECAST(ROW(A2),B1:B3,ROW(A1:A3))

etc.

If you want a more automatic process, then C2 can contain the array formula
(entered with Ctrl-Shift-Enter)


=IF(ISNUMBER(B2),B2,FORECAST(ROW(A2),$B$1:$B$11,IF ((ROW($A$1:$A$11)=MAX(IF(ISNUMBER(B$1:B1),ROW(A$1: A1))))+(ROW($A$1:$A$11)=MIN(IF(ISNUMBER(B3:B$11),R OW(A3:A$11)))),ROW($A$1:$A$11))))

which you can then copy down through C10

Jerry

"tom ossieur" wrote:

Hi,

column A months
column B values, but for some months the data are missing

how to create in column C a table of values assigning values to the missing
months, based on a linear equation, connecting the last previous value and
the first next value

so how to create column C?

e.g.

A B C
Feb-97 27 27
Mar-97 25
Apr-97 23 23
May-97 26 26
Jun-97 27
Jul-97 28 28
Aug-97 27.8
Sep-97 27.6
Oct-97 27.4
Nov-97 27.2
Dec-97 27 27


Thanks!

tom

 
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 do I interpolate numbers in Excel? Help!!!!! Excel Discussion (Misc queries) 4 April 13th 06 11:19 PM
Interpolate from a table? israelica Excel Discussion (Misc queries) 1 February 17th 06 04:53 PM
IS THERE A WAY TO INTERPOLATE AUTOMATICALLY WITHIN A DATA TABLE? Eric S. New Users to Excel 3 June 16th 05 05:55 AM
interpolate missing data between points Rocket Rod Excel Worksheet Functions 2 February 27th 05 07:24 PM
Interpolate SAMM Excel Worksheet Functions 1 February 10th 05 04:22 PM


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