BL2.ru

Table interpolation online(linear, spline, inverse)

Paste a whole table — two columns from Excel, Google Sheets or a PDF — and compute intermediate values for one or hundreds of points at once. The calculator finds the right interval, flags extrapolation and also solves the inverse task: x for a given y.

Two columns separated by Tab (copied from Excel), semicolon, comma or space; a header row is skipped.
Method
Find
One number or several — one per line or separated by semicolons.
Calculate

Why interpolate a table

Standards and handbooks — building codes, steam tables, material properties, price lists — give values only at nodes. The value you need almost always lies between two rows. For two neighbouring rows a two-point linear interpolation is enough; this calculator takes the whole table so you can evaluate any number of points without picking the interval by hand.

How it works

Piecewise linear interpolation. For every x the interval [xi; xi+1] is found and the value is taken on the straight segment between the neighbouring nodes:

y = yi + (x − xi) · (yi+1 − yi) / (xi+1 − xi)

Cubic spline. A smooth curve made of cubic polynomials passes through all points; value, first and second derivatives match at the nodes (natural spline: zero second derivative at the ends). It is more accurate than straight segments for smooth curved data and does not oscillate like a single high-degree Lagrange or Newton polynomial.

Inverse interpolation. y is known, x is needed. All intervals where the table passes through y are found; a non-monotonic table may give several answers.

Example

Table (0; 1.00), (10; 0.95), (20; 0.85), (30; 0.70). For x = 15: y = 0.95 + (15 − 10) · (0.85 − 0.95) / (20 − 10) = 0.90. Inversely, y = 0.9 gives x = 15. x = 35 is outside the table and is marked as extrapolation.

Tips

  • Copy two columns in Excel (Ctrl+C) and paste them into the table field.
  • Results for many points are copied with one button and pasted back into Excel as a column.
  • The link stores the table and the values.
  • If the value depends on two parameters (row and column), use bilinear interpolation.

FAQ

How do I interpolate a value from a standard table?
Copy the parameter column (x) and the value column (y), paste them, enter your x and press Calculate. Standards assume linear interpolation between neighbouring rows — it is the default method.
Is a cubic spline better than linear interpolation?
For smooth curved data a spline is usually more accurate. For code tables the expected answer is linear interpolation.
What is inverse interpolation?
Finding x for a known y — for example, the temperature at which density reaches a given value. Switch to “x from y” and enter y values.
Can I compute many values at once?
Yes, enter up to 1000 x values as a column and copy the result table back to Excel.