INTERPOLATION Function (Gnumeric)
Estimate points or interval averages in Gnumeric with INTERPOLATION, linear, staircase and natural cubic spline methods.
Verification status: Gnumeric 1.12.57 ssconvert: specified INTERPOLATION fixtures and separately captured worked-example GUI. Gnumeric 1.12.62 source inspected separately. How formula examples are checked
INTERPOLATION estimates values of a function at requested x positions from known x/y observations. It supports point estimates and interval averages. The averaging methods return mean heights over intervals, not merely arithmetic averages of the two endpoint observations.
Syntax and methods
=INTERPOLATION(abscissae,ordinates,targets[,interpolation])
The first three arguments are required. abscissae are the observed x values, ordinates the matching y values, and targets the requested x values or interval boundaries. The optional interpolation method defaults to 0.
| Method | Meaning |
|---|---|
| 0 | Linear point interpolation |
| 1 | Linear interpolation with interval averaging |
| 2 | Staircase point interpolation |
| 3 | Staircase with interval averaging |
| 4 | Natural cubic spline point interpolation |
| 5 | Natural cubic spline with interval averaging |
Use the exact integer method codes. Multiple targets must occupy consecutive cells in a single column. The result is always one column. Methods 0, 2 and 4 return one value per target; methods 1, 3 and 5 return one fewer value than the number of target boundaries. Averaging targets must be strictly increasing. Select the appropriate destination column range and confirm the formula with Ctrl+Shift+Enter for array entry.
Known x/y pairs should be supplied in increasing x order. The examined implementation can sort unsorted pairs internally, but sorting the complete paired table beforehand is clearer and faster. Duplicate x coordinates are invalid. Text, logical values and blanks in the observed pairs are excluded together; inspect the retained pairs rather than assuming independently compacted ranges still correspond.
Worked example: a triangular response curve
Enter this table in A1:B3:
| Row | A: x | B: y |
|---|---|---|
| 1 | 0 | 0 |
| 2 | 2 | 20 |
| 3 | 4 | 0 |
Put target 1 in C1 and 3 in C2. Select D1:D2 and array-enter =INTERPOLATION(A1:A3,B1:B3,C1:C2). The expected values are 10 and 10. The first segment has slope 10, giving y(1) = 10. The second has slope -10, giving y(3) = 10.
Omitting the method is the same as using 0 for this example. It does not select the most visually smooth curve automatically. A spline and a linear interpolation are different models between the same observations.
Advanced use: interval-average response
Put interval boundaries 0, 2, 4 in F1:F3. Select G1:G2 and array-enter =INTERPOLATION(A1:A3,B1:B3,F1:F3,1). The expected outputs are 10 and 10, now representing the mean response on [0,2] and [2,4]. Each triangular area’s value is 20 and its interval width is 2, so its average height is 10.
For one interval covering the whole triangle, put 0 and 4 in I1:I2 and enter =INTERPOLATION(A1:A3,B1:B3,I1:I2,1) in J1 as an array formula. The expected result remains 10: the total area is 40 and the interval width is 4. The two endpoint y values are both zero, so averaging only those endpoints would incorrectly give zero. This demonstrates why interval integration and endpoint averaging are different operations.
Natural cubic spline methods enforce their own smoothness and endpoint conditions; they are not interchangeable with a trend fitted by least squares. Staircase methods instead model piecewise-constant behavior. Choose a method that matches how the underlying process changes.
Errors and boundary behavior
- Duplicate known x values return
#VALUE!in the examined callback. Resolve conflicting observations deliberately; do not discard one just to remove the error. - A row of multiple targets is invalid; use a column. Averaging needs at least two increasing target boundaries.
- Invalid method codes return
#VALUE!. The implementation floors a supplied numeric code before checking it, but exact documented codes avoid ambiguous intent. - Linear interpolation needs at least two usable observed pairs. Too few points leave that interpolation undefined.
- The examined linear implementation extrapolates beyond the known x range using the end segment. For this triangle, x = 5 gives -10. Do not assume the result is clamped to zero or that an extrapolated response is physically plausible.
- Missing or invalid targets can generate errors at their output positions. Use a clean numeric target column, especially for interval methods, where missing boundaries undermine the interval definition.
- An interval average is a height, not a total. Multiply by the interval width if the units and application require an integrated quantity.
Version and verification scope
The pinned 1.12.62 source documents the six methods and the output shape. This guide does not establish the first release containing INTERPOLATION or a retirement date. Gnumeric 1.12.57 ssconvert recalculated the two linear point values and the two interval averages on 17 October 2026 in C.UTF-8; the whole-interval calculation is independently verified geometry. A separate worked-example GUI capture is documented below.
Related functions
Official sources
Native application screenshot

Gnumeric 1.12.57, captured 17 October 2026. Known x/y A1:B3; targets C1:C2; results D1:D2. The selected cell D1 shows the formula in the formula bar. Display precision is shorter than the independent reference values; integer cells may show a trailing decimal point. GUI locale was not independently recorded.