logo
search
SharePoint Document Issues

How to Fix SharePoint Lookup Column Exporting as Numbers in Excel

Nimra MalikNimra Malik Oct 16, 2026 869 views

Question details

The user needs to export a SharePoint list to Excel, but the lookup column displays numeric IDs instead of the associated text, such as the company name.

How to Fix SharePoint Lookup Column Exporting as Numbers in Excel
Product
SharePoint / Microsoft Excel
Device & OS
not provided
Scenario
Exporting or querying a SharePoint list in Excel where a lookup column is involved.
Observed behavior
The lookup column exports as numeric identifiers (e.g., Company Name ID) rather than the actual display text of the related item.
Before you start

Confirm whether you are extracting data using SharePoint's native 'Export to Excel' button or Excel's Power Query (Get Data) function, as the troubleshooting steps differ based on the method.

Solution 1Recommended

Expand the Lookup Record in Power Query

If you are using Power Query to pull data from SharePoint, lookup columns are imported as records by default. You must manually expand the record to display the text field.

Power Query connects to the backend of the SharePoint database. Because a lookup column links to another list, Power Query initially pulls the raw relational data, which includes the numeric ID. Expanding the record allows you to select the exact display column you need.

1
Open Power Query Editor

In Excel, go to the 'Data' tab and click 'Queries & Connections'. Double-click your SharePoint query to open the Power Query Editor.

2
Locate the Lookup Column

Scroll through your data preview until you find the column representing your lookup data (e.g., Company Name). It will likely say 'Record' in every cell.

3
Expand the Record

Click the small split-arrow icon in the top right corner of the column header. A dropdown menu will appear.

4
Select the Text Field

Uncheck the 'ID' box and check the box for the specific text field you want to display (e.g., Title or Company Name). Uncheck 'Use original column name as prefix', then click 'OK'. Load the data back into Excel.

Expand the Lookup Record in Power Query
Live Connection Maintained: Using Power Query allows you to keep the live data connection while displaying the correct text values. Simply click 'Refresh' in Excel to update the list.
Free Microsoft Office alternative

Manage Your Exported Data Seamlessly with WPS Office

While SharePoint data connections require specific configuration in the Microsoft ecosystem, handling your exported CSV and spreadsheet data is effortless with WPS Office. It provides a highly compatible, lightweight, and completely free alternative for all your spreadsheet analysis tasks.

  1. 1. Download WPS Office: Get the free WPS Office installer from the official website and complete the quick installation process.
  2. 2. Open Your Exported Data: Launch WPS Spreadsheet and open the .csv or .xlsx file you successfully exported from your SharePoint list.
  3. 3. Analyze and Format: Use WPS Spreadsheet's built-in data tools to filter your text lookup columns, apply formatting, and analyze your data without subscription costs.
Free, lightweight, and easy-to-use Office suiteFully compatible with Microsoft Excel formats (.xlsx, .csv)Familiar interface requires zero learning curvePowerful data filtering, sorting, and processing capabilities
microsoft office alternative - wps office

Frequently Asked Questions

Why does my exported Excel file show 'Company Name ID' instead of the company name?

This happens when Excel queries the SharePoint database directly. A lookup column stores the relational database ID of the linked item, not the text itself. Depending on your export method (like Power Query), it pulls this raw ID instead of the linked text value.

Does exporting to CSV fix the SharePoint lookup column issue?

Yes, exporting to CSV usually bypasses the issue because it exports a flat representation of your current list view. However, a CSV file is static and will not maintain a live, refreshable connection to the SharePoint list.

How do I maintain a live connection to my SharePoint list while displaying text?

You should use Excel's Power Query (Get Data > From Online Services > From SharePoint Online List). Once imported, open the Power Query Editor, locate the column (which will say 'Record'), and expand it to select the text field while unchecking the ID field.