Short but useless answer -- yes, there is a way (probably more than one) for doing multivariate interpolation in Excel or any programming language. I would note that I don't usually use IF() functions when I do interpolations.
Naturally, multivariate interpolation gets more complex than simple single variable interpolation. There is probably some value in reviewing the different algorithms for multivariate interpolation to fix ideas:
https://en.wikipedia.org/wiki/Multiv..._interpolation
A typical interpolation algorithm in Excel tends to include:
1) identify desired input and output variables
2) Lookup functions (I usually use INDEX() and MATCH() functions) to locate the data in the table.
INDEX() function:
https://support.office.com/en-us/art...2-b56b061328bd
MATCH() function:
https://support.office.com/en-us/art...9-533f4a37673a
2a) I find that I almost always use binary search/approximate match option in the lookup function (1 or -1 in the 3rd argument of the MATCH() function) so make sure you are familiar with how that option works.
2b) It is often valuable to think through your source data table to make sure it is easy to find stuff in. For example, in your source table, you have both elevation and some other value intermingled across the top. This will be difficult to search, so I could see value in separating elevation from the other value -- possibly even requiring separating the one table into 2 separate tables.
3) Once you have located the "block" of data needed for the interpolation, a series of INDEX() functions to extract those values from the table.
4) With the needed data extrapolated from the table, input those values into the desired interpolating equation. It is not clear to me what that equation should look like for your data, but I assume you have that information.
From what I see, it seems that the lookup step (2) is the one that causes most people the most difficulty.
With the problem broken down into steps, what part do you have trouble with?
Bookmarks