Interpolation in Excel

%3CLINGO-SUB%20id%3D%22lingo-sub-2403093%22%20slang%3D%22en-US%22%3EInterpolation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403093%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EI%20am%20hoping%20someone%20can%20help%20me%20with%20an%20issue%20I%20have%20been%20having.%20I%20am%20trying%20to%20add%20an%20Interpolation%20sum%20in%20one%20of%20my%20spreadsheets%20but%20I%20just%20can't%20figure%20out%20how.%20Below%20is%20the%20sum%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Ruben40870_0-1622537599970.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285260i49306FE438D1684A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Ruben40870_0-1622537599970.png%22%20alt%3D%22Ruben40870_0-1622537599970.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20really%20hope%20someone%20can%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2403093%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403265%22%20slang%3D%22en-US%22%3ERe%3A%20Interpolation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403265%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1068132%22%20target%3D%22_blank%22%3E%40Ruben40870%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wrote%20this%20spreadsheet%20for%20another%20post%20but%20it%20applies%20here.%3C%2FP%3E%3CP%3EThe%20difference%20is%20that%20the%20spreadsheet%20formula%20looks%20up%20the%20closest%20points%20for%20which%20data%20is%20provided%20rather%20than%20the%20input%20being%20uniquely%20identified.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20339px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285264i60E5FD219CF7F296%2Fimage-dimensions%2F339x247%3Fv%3Dv2%22%20width%3D%22339%22%20height%3D%22247%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403578%22%20slang%3D%22en-US%22%3ERe%3A%20Interpolation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403578%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3BThank%20you%20Peter%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20actually%20need%20the%20Lookup%20function%20as%20the%20data%20will%20always%20change%2C%20so%20I%20would%20need%20to%20manually%20enter%20the%20data%20anyway.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20your%20formula%20but%20it%20doesn't%20give%20me%20the%20answer%20I%20need.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403755%22%20slang%3D%22en-US%22%3ERe%3A%20Interpolation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403755%22%20slang%3D%22en-US%22%3EIt%20gave%20the%20answer%20you%20quoted%20to%206s.f.%3CBR%20%2F%3EThat%20aside%2C%20it%20may%20go%20better%20if%20you%20inform%20the%20forum%20of%20the%20Excel%20version%20you%20use%20(my%20formulation%20is%20specific%20to%20Excel%20365)%20and%20ideally%20provide%20a%20workbook%20to%20demonstrate%20how%20the%20input%20is%20held%20and%20the%20required%20solution.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403899%22%20slang%3D%22en-US%22%3ERe%3A%20Interpolation%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403899%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3BI%20also%20use%20Excel%20365.%3C%2FP%3E%3CP%3EI'll%20post%20an%20image%20of%20the%20table%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Ruben40870_0-1622554860510.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285307i49CB9D9C617A21D0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Ruben40870_0-1622554860510.png%22%20alt%3D%22Ruben40870_0-1622554860510.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20hope%20this%20makes%20it%20easier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi All,

I am hoping someone can help me with an issue I have been having. I am trying to add an Interpolation sum in one of my spreadsheets but I just can't figure out how. Below is the sum:

Ruben40870_0-1622537599970.png

I really hope someone can help.

 

Thanks in advance!

 

9 Replies

@Ruben40870 

I wrote this spreadsheet for another post but it applies here.

The difference is that the spreadsheet formula looks up the closest points for which data is provided rather than the input being uniquely identified.

image.png

@Peter Bartholomew Thank you Peter for your reply.

 

I don't actually need the Lookup function as the data will always change, so I would need to manually enter the data anyway.

 

I tried using your formula but it doesn't give me the answer I need.

It gave the answer you quoted to 6s.f.
That aside, it may go better if you inform the forum of the Excel version you use (my formulation is specific to Excel 365) and ideally provide a workbook to demonstrate how the input is held and the required solution.

@Peter Bartholomew I also use Excel 365.

I'll post an image of the table below:

 

Ruben40870_0-1622554860510.png

I hope this makes it easier.

 

@Ruben40870 

Ultimately I would aim at using a Lambda function to lookup the Room Cavity Ratios but for now

= LET(
  CU,   XLOOKUP(pw₀, pw, table_CU),
  RCR₁, XLOOKUP(RCR₀,RCR,RCR,,-1),
  RCR₂, XLOOKUP(RCR₀,RCR,RCR,,1),
  CU₁,  XLOOKUP(RCR₀, RCR, CU,,-1),
  CU₂,  XLOOKUP(RCR₀, RCR, CU,,1),
  w₁,  (RCR₂-RCR₀)/(RCR₂-RCR₁),
  w₂,  (RCR₀-RCR₁)/(RCR₂-RCR₁),
  IF(RCR₁<>RCR₀, w₁*CU₁+w₂*CU₂, CU₁) )

should work with the table as far as I have copied it in to Excel.  If you choose to type in the values for  RCR₁, RCR₂, CU₁, CU₂, and remove the XLOOKUPS that should work fine, though I would find it tedious and error-prone.  Do you also need to interpolate across 'pw' or is that a straight lookup?

No, the pw only tells you which values to use. I'm basically given a set of data and with this data, I have to find the appropriate values from the table. Then use interpolation to find a more accurate CU value.
Do you need me to remove the XLOOKUPS or can you
a) use them, or
b) remove them and link to data cells
Remove them and link to data cells. I'll just manually input the data into specific cells.

@Ruben40870 

I thought I had given up the process of manual lookups when logarithm tables faded into obsolescence!  In theory I could use those direct cell reference thingies -- but its against my religion.

Joking aside, I hope this is what you want.