Values interpolations

capt

New Member
Joined
Aug 5, 2011
Messages
3
I have an excel sheet 2007 with numbers values in cells A1, A6, F1 and F6.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
How to interpolate please values in cell A1, A6, F1 and F6 in order to fill in the blank cells B1 to E6?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Welcome to the Board!

It isn't quite clear which way you are interpolating (down rows, across columns, or both).

Can you post an example of your data, and your expected results?
 
Upvote 0
Perhaps in B1 and copy across and down,

Code:
=($A$1 * (1 - (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) *  (1 - (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1)))
+ $F$1 * (    (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) *  (1 - (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1)))
+ $A$6 * (1 - (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) *  (    (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1)))
+ $F$6 * (    (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) *  (    (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1))))

E.g.,

Code:
      --A--- --B--- --C--- --D--- ---E--- ---F---
  1    1.00   2.00   3.00   4.00    5.00    6.00 
  2           3.04   4.08   5.12    6.16         
  3           4.08   5.16   6.24    7.32         
  4           5.12   6.24   7.36    8.48         
  5           6.16   7.32   8.48    9.64         
  6    6.00   7.20   8.40   9.60   10.80   12.00
 
Upvote 0
Thank you for your reply, I would like please to interpolate both down rows and across columns.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Below is an example of my data:<o:p></o:p>
<o:p></o:p>
Altitude<o:p></o:p>
Weight 0 4000 8000<o:p></o:p>
220 2.8 4.8 6.8<o:p></o:p>
200 3.1 5.1 7.1<o:p></o:p>
180 2.9 4.9 6.9 <o:p></o:p>
<o:p></o:p>
As an example, my expected results for weight 210 and altitude 2000 is 3.95.<o:p></o:p>
<o:p></o:p>
SHG I am sorry but I am not really familiar with cods. If you please have it in simplified steps.<o:p></o:p>
<o:p></o:p>
 
Upvote 0
Assume you've spaced your data as below and want to fill in the missing values.

Code:
      --A-- --B-- --C-- --D-- --E-- --F-- --G-- --H-- --I-- --J--
  1           0                      4000                    8000
  2    220   2.8                     4.8                     6.8
  3         
  4    200   3.1                     5.1                     7.1
  5   
  6    180   2.9                     4.9                     6.9
Here are two relatively simple methods:

A) Fill individual ranges using Series command...
1) Select B1:F2 then from the Home Tab on the ribbon choose Fill > Series, check Trend and Series in Rows, OK.
2) Repeat for F1:J2, B4:F4, F4:J4, B6:F6, F6:J6. (*)
3) Select A2:J4, A4:J6 then choose Fill > Series, check Trend and Series in Columns, OK.
*A quick way is to select all the ranges together by holding down Ctrl (note that the ranges will overlap at the end points) then choose the Fill > Series command

B) Use simple formulas with iteration set...
1) Under Excel Options in the File or Office button tab Check Enable Iterative Calculation, Max Change: 0
2) Select (A3:J3, A5:J5) and with A3 as the active cell type =(A2+A4)/2 and press ctrl+enter to fill the range.
3) Select (C1:E6, G1:I6) and with C1 as the active cell type =(B1+D1)/2 and press ctrl+enter to fill the range.
4) Select the range and copy/ Paste Special Values, then uncheck Enable Iterative Calculation.
 
Upvote 0
capt,

The data value change for Weight doesn't appear to be a linear relationship because it decreases as Weight increases or decreases from about a Weight value of 200. Is this supposed to be a linear relationship?

Your data values appear to increase in a linear fashion horizontally, for the increasing Altitude values.

I have a two way interpolation solution, but it requires a linear change in the horizontal (Altitude) and vertical (Weight) data values.
 
Upvote 0
<TABLE style="WIDTH: 222pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=294><COLGROUP><COL style="WIDTH: 37pt" span=6 width=49><TBODY><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 37pt; HEIGHT: 12pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 height=16 width=49 align=right>1</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; WIDTH: 37pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" id=td_post_2817144 class=xl29 width=49 align=right>2</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; WIDTH: 37pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 width=49 align=right>3</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; WIDTH: 37pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 width=49 align=right>4</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; WIDTH: 37pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 width=49 align=right>5</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: white; WIDTH: 37pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 width=49 align=right>6</TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; HEIGHT: 12pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 height=16></TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>3.2



</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>4.4</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>5.6</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>6.8</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: white; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30></TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; HEIGHT: 12pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 height=16></TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>4.4</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>5.8</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>7.2</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>8.6</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: white; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30></TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; HEIGHT: 12pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 height=16></TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>5.6</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>7.2</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>8.8</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>10.4</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: white; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30></TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; HEIGHT: 12pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 height=16></TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>6.8



</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" id=td_post_2817144 class=xl29 align=right>8.6</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>10.4</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>12.2</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: white; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30></TD></TR><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: white; HEIGHT: 12pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 height=16 align=right>6</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>8</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>10</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>12</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #e7e7e7; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl29 align=right>14</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: white; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl30 align=right>16</TD></TR></TBODY></TABLE>


A1, A6, F1, and F6 are inputs.

The formula in B1 and copied right and down is

=($A$1 * (1 - (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) * (1 - (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1)))
+ $F$1 * ( (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) * (1 - (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1)))
+ $A$6 * (1 - (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) * ( (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1)))
+ $F$6 * ( (COLUMN(B1)-COLUMN($A$1)) / (COLUMN($F$1)-COLUMN($A$1))) * ( (ROW(B1)-ROW($A$1)) / (ROW($A$6)-ROW($A$1))))
 
Upvote 0
Thank you all, Lori I tried your first methods and it is working fine thanks again.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top