Fix Excel Formulas That Stop Working After a Power Query Refresh
Question details
The user needs Excel formulas to calculate correctly after a Power Query refresh.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- A query refresh imports data used by Excel formulas.
- Observed behavior
- Formulas stop calculating correctly after the refresh; affected values may be stored as text.
Identify the query output column used by the affected formulas and check whether its numeric values are stored as text. Keep identifiers with meaningful leading zeros as text rather than converting them to numbers.
Convert Text Numbers and Set the Power Query Data Type
Use this method when refreshed values are stored as text and formulas need numeric input.
Select the affected worksheet column, then choose Home > Number Format > General. Changing the format alone does not convert existing text values.
With the single affected column selected, choose Data > Text to Columns, then click Finish. Check that the values are now recognized as numbers.
Open Data > Queries & Connections, right-click the query, and select Edit. In Power Query Editor, select the column and use Transform > Data Type to choose Whole Number or Decimal Number, as appropriate.
Select Home > Close & Load, then use Data > Refresh All. Check the refreshed values and the formulas that refer to them.

Check Excel's Calculation Mode
Use this check if the refreshed values are numeric but formula results do not update.
Work With Spreadsheet Formulas in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday workbook work. It does not fix Microsoft Excel Power Query refresh behavior; check query-dependent workbooks in Excel.

Frequently Asked Questions
Why do formulas return incorrect results after a query refresh?
The refreshed column may contain numbers stored as text. Check the column in Power Query Editor and set Transform > Data Type to the appropriate numeric type.
Does changing the cell format to General convert text to numbers?
No. Select the affected column, set Home > Number Format to General, then use Data > Text to Columns > Finish to convert existing text numbers.
What if my decimal values are converted incorrectly?
In Power Query Editor, right-click the affected column and choose Change Type > Using Locale. Select the numeric type and the locale that matches the source separators.
Why are formulas still showing old results after refresh?
Check Formulas > Calculation Options and select Automatic. Then choose Formulas > Calculate Now and verify that the formulas reference the intended cells.




