not entirely clear to me just what you wanted, so if only for my own info, here's a VBA code which does some interpolation on your data.
if it's off the mark then a simple "it's off the mark" response would keep me happy.
in the code, a is a variant array, from a worksheet in this example but can come from anywhere, and b is a variant array of interpolated output, which can be put anywhere or just kept in memory.
Sub interpx()
Dim a, b()
Dim mx&, mn&, i&, c&, r&
a = Cells(1).CurrentRegion.Resize(, 2) 'variant array from A1 current region on worksheet, or elsewhere
r = UBound(a, 1)
For i = 1 To r
If a(i, 1) > mx Then mx = a(i, 1)
If a(i, 1) < mn Then mn = a(i, 1)
Next i
ReDim b(mx - mn + 1, 1 To 2) 'variant array of interpolated output
For i = 2 To r
x = a(i, 1): y = a(i - 1, 1)
For j = 0 To x - y - 1 Step 1 '10
b(c, 1) = j + y
b(c, 2) = a(i - 1, 2) + j * (a(i, 2) - a(i - 1, 2)) / (x - y)
c = c + 1
Next j
Cells(c + 1, 4).Resize(, 2).Interior.Color = vbCyan
Next i
b(c, 1) = a(r, 1): b(c, 2) = a(r, 2)
Cells(4).Resize(c + 1, 2) = b
Cells(1, 4).Resize(, 2).Interior.Color = vbCyan
End Sub
there's a bit of cell coloring just for fun, but that can be deleted with no loss.
Bookmarks