Mr. Max,
Thank you for responding to my query.
You're welcome ! .. and there's no need for the "Mr said:
The given worksheet formula has apparently worked well as given in
columns D and E.
However,
1. Copy the given formula (verbatim) to a location outside of columns
D and E, it does not work thereof.
hmm .. I'd usually do either a cut-paste or a "move", rather than a
copy-paste,
to let Excel automatically take care of adjustments to the formulas
2. When it is so required to insert (at the top of the worksheet) some
additional (entire) rows above the tabulation of the X and Y values,
the existing interpolation figures (as displayed in columns D and E by
the given formula) would be altered.
Try this revised formula in E2
(with the known XY range now "fixed": $A$1:$A$22
replacing the previous entire col reference used: $A:$A)
=OFFSET($A$1,MATCH($D2,$A$1:$A$22,1),1)-($D2-OFFSET($A$1,MATCH($D2,$A$1:$A$2
2,1)-1,))*(OFFSET($A$1,MATCH($D2,$A$1:$A$22,1),1)-OFFSET($A$1,MATCH($D2,$A$1
:$A$22,1)-1,1))/(OFFSET($A$1,MATCH($D2,$A$1:$A$22,1),)-OFFSET($A$1,MATCH($D2
,$A$1:$A$22,1)-1,))
Copy E2 down as before
The above will now work properly even if rows were to be inserted
at the top of the sheet subsequently