Power Query Problems

Use XLOOKUP with Power Apps Data in a Closed Excel Workbook

Maira MehtabMaira Mehtab Dec 2, 2026 868 views

Question details

Connect customer data used by Power Apps to Excel reports without requiring the source workbook to be open.

Use XLOOKUP with Power Apps Data in a Closed Excel Workbook
Product
Microsoft Excel, Power Query, and Power Apps
Device & OS
not provided
Scenario
Multiple users need to look up customer information in reports while the source workbook remains closed.
Observed behavior
Users need reports to retrieve customer details from a refreshed local table without coordinating the opening and closing of the source workbook.
Before you start

Confirm that the customer data is saved in an Excel table in the source workbook and that each report user can access its location. Check that your Excel version supports Power Query and XLOOKUP, and identify the customer ID column and the fields to return.

Solution 1Recommended

Import the customer table with Power Query and look it up locally

Use this approach when the customer data is available in a saved Excel workbook that users can access, even while it is closed.

Power Query loads a copy of the source table into the report workbook. XLOOKUP reads that local copy, so the source workbook does not need to be open, but the results are only as current as the last successful refresh.

1
Connect to the source workbook

In the report workbook, select Data > Get Data > From File > From Excel Workbook. Choose the saved source workbook and select the customer table in Navigator.

2
Load the customer table

In Navigator, choose Load To and load the data as a table on a new worksheet. Rename the table, for example to Customers, using Table Design > Table Name.

3
Add the lookup formula

Enter a customer ID in the report, such as in cell B2. In the result cell, use a formula such as =XLOOKUP(B2,Customers[Customer ID],Customers[Customer Name],"Not found"), replacing the column names with those in your table.

4
Hide the helper sheet

Right-click the worksheet tab containing the imported table and select Hide. Keep the table in the report workbook so the lookup formula can use it.

5
Refresh before printing

Enter the customer ID, select Data > Refresh All, and wait for the query to finish. Check the returned details before selecting File > Print.

Import the customer table with Power Query and look it up locally
Refresh and access requirements: Each user needs access to the source location and may need to provide credentials. Power Apps changes must be saved to the source workbook before they can appear in a refreshed report.
Free Microsoft Office alternative

Work with customer reports in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility for easier migration. Test your report's queries and formulas before switching, because WPS does not fix Excel Power Query refresh issues.

Open and edit customer report spreadsheets in a familiar interfaceCompatible with Microsoft Excel XLSX and XLS formatsFree, lightweight office suite for everyday document workMove existing Office files into a familiar workspace
microsoft office alternative - wps office

Frequently Asked Questions

Does the source workbook have to be open for the lookup?

No. Once Power Query loads the customer table into the report workbook, XLOOKUP uses that local table. The source workbook must still be accessible when the query refreshes.

How do I update the customer information before printing?

Select Data > Refresh All in the report workbook, wait for the query to finish, and check the results before using File > Print.

Why does XLOOKUP return Not found for a customer ID?

Check that the ID exists in the refreshed Customers table and that the lookup cell and source ID use matching values and data types. Select Data > Refresh All if the customer was added after the last refresh.

Can all report users refresh the same customer data?

Users can refresh their reports if they have access to the source workbook and any required credentials. Confirm that the connection points to a location accessible to each user.

Will hiding the helper sheet stop the lookup from working?

No. Right-clicking the helper sheet tab and selecting Hide leaves its table available to formulas. Do not delete the sheet or table while the report depends on it.