Power Query Problems

Fix Excel Power Query Omitting Text Values from a Data Column

Olivia MillerOlivia Miller Nov 13, 2026 868 views

Question details

The user needs to stop Excel Power Query from converting a column to a numeric type when later rows contain text values, which currently makes text values appear as errors or nulls.

Fix Excel Power Query Omitting Text Values from a Data Column
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
The user imports external data into Excel with Power Query. A column contains numbers in the first 200 rows and text values later, so Power Query infers the whole column as numeric.
Observed behavior
Text values after the first 200 rows are omitted, shown as errors, or returned as null because they do not match the inferred numeric data type.
Before you start

Open the workbook and display the Queries & Connections pane from Data > Queries & Connections so you can identify the query with errors and locate the type-conversion step in the Applied Steps list.

Solution 1Recommended

Change the Power Query column type from number to type any

Use this when a column contains a mix of numbers and text and the automatic type detection has assigned a numeric type, causing text rows to become errors or nulls.

Power Query infers data types from the first 200 rows by default. If those rows contain only numbers, later text values do not match the inferred numeric type and are replaced by errors or nulls. Changing the column to type any allows the column to keep both numbers and text values.

1
Open Queries & Connections

In Excel, go to Data > Queries & Connections to open the pane and check for queries showing an error count or warning.

2
Edit the query

Right-click the affected query in the Queries & Connections pane and choose Edit to open the Power Query Editor.

3
Select the type-conversion step

In the Applied Steps list on the right, select the step that changed the column type, usually named Changed Type.

4
Change the column data type to any

In the formula bar, replace the numeric type with type any for the affected column. For example: Table.TransformColumnTypes(Source, {{"Data", type any}}). Replace Data with the actual column name.

5
Load the corrected data

Click File > Close & Load to return the corrected query results to Excel and verify that the text values now appear.

Change the Power Query column type from number to type any
Mixed values restored: After changing the column to type any, both number and text values remain visible in the query output.
Free Microsoft Office alternative

Work with Excel Data Without Power Query Headaches in WPS Office

WPS Office is a free, lightweight suite that opens, edits, and saves Excel workbooks with a familiar ribbon interface. It preserves .xlsx, .xls, and .csv compatibility, so you can view and clean mixed text and number data without paying for Microsoft Office.

  1. 1. Download WPS Office: Go to the WPS Office download page and install the free Office suite on your computer.
  2. 2. Open your Excel workbook: Launch WPS Spreadsheets and open the .xlsx or .xls file that contains the data you need to inspect.
  3. 3. Review the data column: Use familiar spreadsheet tools to locate the column and confirm whether text values are displayed correctly.
Opens and edits Excel workbooks with a familiar spreadsheet layoutPreserves .xlsx, .xls, and .csv compatibility for easy file sharingFree lightweight Office suite with no subscription requiredClean, familiar UI makes migration from Microsoft Office straightforwardHandles mixed text and number data in spreadsheets using standard editing tools
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query change text values to null in Excel?

Power Query detects a column data type from the first 200 rows by default. If those rows contain numbers, it can assign a numeric type, and later text values that do not match become errors or null results.

How do I find which Power Query has type errors?

Open Data > Queries & Connections in Excel. The pane shows an error count next to queries that contain rows failing the current data type conversion.

Can a Power Query column contain both numbers and text?

Yes. In the Power Query Editor, change the column type to Any or Text. For example, use Table.TransformColumnTypes(Source, {{"Data", type any}}) and replace Data with your actual column name.

Will changing a column to type any break numeric calculations?

Type any keeps mixed values, but you should create a separate numeric column or conversion for calculations instead of relying on the original mixed column for math.

Does WPS Office include Power Query?

WPS Office is a free Office alternative that opens and edits Excel files, but Power Query tasks remain a Microsoft Excel feature. You can review and clean mixed text and number data with WPS Spreadsheets.