Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MichaelPercival
Frequent Visitor

Complex Excel Xlookup values not correctly retrieved by Power Query

Good Morning,

 

This might be a very specific quirk, but I have repeatedly found that some complex xlookup formulas I have in an excel spreadsheet are displaying correctly in Excel, but power queries retrieving the values from these formula are retrieving incorrectly. Am I right that Power query is trying to process the formula (and in my cases, incorrectly) , rather than retrieving the displayed valuein excel, and if so, is there a setting to make it retrieve just the value?

 

(I appreciate the below isn't very enlightening, but it appears that the power query is trying to process the formula in the cell, only incorrectly:  retrieving the first 'top-down' result from the look-up table, whereas the formula has 'last to first' so excel is correctly retrieving the last result).

MichaelPercival_2-1732017882885.png

MichaelPercival_3-1732017905926.png

 

 

 

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @MichaelPercival -You're correct that this issue likely arises because Power Query doesn't retrieve the displayed value of a cell that contains a formula, but rather tries to recompute it based on its internal logic.

Copy the range containing the XLOOKUP formulas.
Paste the values back into the same range using Paste Special > Values Only.
Load this range into Power Query. Since the cells now contain static values, Power Query will retrieve them without reinterpreting the formula.

There’s no setting in Power Query to "force retrieve only the displayed value" without pre-processing the data in Excel.

 

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @MichaelPercival -You're correct that this issue likely arises because Power Query doesn't retrieve the displayed value of a cell that contains a formula, but rather tries to recompute it based on its internal logic.

Copy the range containing the XLOOKUP formulas.
Paste the values back into the same range using Paste Special > Values Only.
Load this range into Power Query. Since the cells now contain static values, Power Query will retrieve them without reinterpreting the formula.

There’s no setting in Power Query to "force retrieve only the displayed value" without pre-processing the data in Excel.

 

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks for this. Replacing the values isn't a solution to my specific system, but very valuable to understand the issue. Thanks, @rajendraongole1 !

 

Michael

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors