Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rocket Rod
 
Posts: n/a
Default interpolate missing data between points

Is there a way to automatically interpolate missing data between data points
in a spreadsheet
eg there might be a list of sequentail dates and a value against each one
but there might be 4 values missing.
By selecting the cells before and after teh missing 4, and choose a funtion
of interpolate, it automatically determines theer are 4 missing, theerfore
divides teh difference by 5 and adds that to each of the cells in turn -
filling in teh blanks.

Perhaps could be enhanced with options of moving average to calculate teh
next point
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Linear interpolation or other? If other, then more information is needed.

If the known data is contiguous, with the points to be interpolated
elsewhere on the sheet, you could use the FORECAST() function for linear
interpolation. If you want actual and interpolated data all together in
one array, then you will have to program the formula manually.

For linear interpolation, this is not difficult. For concreteness,
suppose dates are in column A with values in column B, and that B2 is to
be interpolated for A2 from A1:B1 and A3:B3. You can linearly
interpolate with
=B1+(A2-A1)*(B3-B1)/(A3-A1)
in B2. Copy/paste the formula into other cells with missing values,
(provided that you don't have 2 missing values in a row).

Jerry

Rocket Rod wrote:

Is there a way to automatically interpolate missing data between data points
in a spreadsheet
eg there might be a list of sequentail dates and a value against each one
but there might be 4 values missing.
By selecting the cells before and after teh missing 4, and choose a funtion
of interpolate, it automatically determines theer are 4 missing, theerfore
divides teh difference by 5 and adds that to each of the cells in turn -
filling in teh blanks.

Perhaps could be enhanced with options of moving average to calculate teh
next point


  #3   Report Post  
BobT
 
Posts: n/a
Default

Follow-up to Jerry:
if you are missing more than two values in a row, say from
B2 to B6,
B2 =B1+(A2-A1)*(B$7-B1)/(A$7-A1)
copied down will fill in all the values.
If there is a way to find the next row down in the column
that is not a formula you could do away with the absolute
reference that has to changed in every new section of
missing data.

for example instead of B$7 use indirect("B"&row(B2)+match
({NotFind("=")Formula},B3:B$65536,0)
(While avoiding a circular ref)

Is there a way to find the first entry in a range that is
a value, not a formula?

-----Original Message-----
Linear interpolation or other? If other, then more

information is needed.

If the known data is contiguous, with the points to be

interpolated
elsewhere on the sheet, you could use the FORECAST()

function for linear
interpolation. If you want actual and interpolated data

all together in
one array, then you will have to program the formula

manually.

For linear interpolation, this is not difficult. For

concreteness,
suppose dates are in column A with values in column B,

and that B2 is to
be interpolated for A2 from A1:B1 and A3:B3. You can

linearly
interpolate with
=B1+(A2-A1)*(B3-B1)/(A3-A1)
in B2. Copy/paste the formula into other cells with

missing values,
(provided that you don't have 2 missing values in a row).

Jerry

Rocket Rod wrote:

Is there a way to automatically interpolate missing

data between data points
in a spreadsheet
eg there might be a list of sequentail dates and a

value against each one
but there might be 4 values missing.
By selecting the cells before and after teh missing 4,

and choose a funtion
of interpolate, it automatically determines theer are 4

missing, theerfore
divides teh difference by 5 and adds that to each of

the cells in turn -
filling in teh blanks.

Perhaps could be enhanced with options of moving

average to calculate teh
next point


.

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
missing data from table kg1953 Excel Discussion (Misc queries) 1 February 2nd 05 06:11 PM
missing data from table kg1953 Excel Discussion (Misc queries) 0 February 2nd 05 05:59 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 06:55 PM
space between y axis and data points.. Dave R. Charts and Charting in Excel 3 January 8th 05 05:56 AM
Newbie to charts question - projecting values between data points 38N90W Excel Discussion (Misc queries) 3 January 6th 05 06:15 AM


All times are GMT +1. The time now is 02:17 PM.

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"