Keep Paid or Unpaid Status After an Excel Power Query Refresh
Question details
Keep a manually selected Paid or Unpaid status associated with each order when Outlook data is refreshed through Power Query.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- Orders are imported from Outlook into an Excel Power Query output table, and each order needs a manually maintained payment status.
- Observed behavior
- Manual statuses entered directly in the query output can be overwritten or become associated with the wrong order when the data refreshes or is reordered.
Confirm that each order has a stable, unique order number available in the Outlook query. Check that order numbers use the same data type and formatting in both the query and the status table.
Merge a Separate Order Status Table into the Outlook Query
Use a separate Excel table to maintain statuses and match them to refreshed orders by order number.
On a separate worksheet, enter Order Number and Status headers, then select the range and choose Insert > Table. Add each order number once and enter Paid or Unpaid beside it.
Select a cell in the status table and choose Data > From Table/Range. In Power Query Editor, select Home > Close & Load > Close & Load To, then choose Only Create Connection.
Choose Data > Queries & Connections, then right-click the Outlook orders query and select Edit.
In Power Query Editor, choose Home > Merge Queries. Select the status table query, select the Order Number column in both tables, and use a Left Outer join to keep all Outlook orders.
Select the expand button on the merged column, choose Status, and select OK. Choose Home > Close & Load to update the orders output.
Edit Paid or Unpaid in the separate status table, then choose Data > Refresh All to update the merged output. Add new order numbers to the status table as they appear.

Manage Order Statuses in WPS Spreadsheet
WPS Office is a free, lightweight alternative for working with spreadsheets in a familiar interface. Open compatible Excel files and maintain a separate order status table in WPS Spreadsheet; it does not fix or replace the Excel Power Query refresh workflow.

Frequently Asked Questions
Why should I keep statuses outside the Power Query output table?
A refresh can replace or reorder the output rows. Keeping statuses in a separate table and merging by order number associates each status with its order rather than with a row position.
What happens when a new order appears after a refresh?
With a Left Outer join, the order remains in the output but its status is null until you add its order number and status to the separate table and select Data > Refresh All.
Why is an existing order's status not showing?
Check that the order number exists in the status table and matches the Outlook query's value and data type. In Power Query Editor, check the data type icon on each Order Number column.
Can I change a status in the merged output table?
Change it in the separate Excel status table instead, then select Data > Refresh All. Changes made directly in the query output may be lost on refresh.
Can WPS Spreadsheet fix the Excel Power Query refresh?
No. WPS Spreadsheet can help you maintain an order status table in a compatible workbook, but the Power Query merge and refresh workflow should be configured in Excel.




