Function Problems

How to Use XLOOKUP in WPS Spreadsheets to Retrieve Part Prices from Another Worksheet

Huma Ashraf ChHuma Ashraf Ch Nov 13, 2026 870 views

Question details

The user needs to link part IDs to prices stored in another worksheet or workbook and calculate purchase order totals using quantity, pricing type, and optional markup.

How to Use XLOOKUP to Retrieve Part Prices from Another Worksheet in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A user maintains a purchase order sheet and needs to pull part prices from a separate worksheet or workbook by part ID, then calculate totals including quantity and optional markup.
Observed behavior
They need a reliable lookup formula that works in WPS Spreadsheets and, where required, remains compatible with Microsoft Excel.
Before you start

Before creating the formula, open both the destination and source workbooks in WPS Spreadsheets and save the source workbook with its final name and location. Confirm the part IDs are formatted the same way in both sheets, such as text or numbers.

Solution 1Recommended

Use XLOOKUP in WPS Spreadsheets to retrieve part prices from another worksheet

Use this modern lookup function when your WPS Spreadsheets version supports XLOOKUP and you want a robust, exact-match formula with built-in not-found handling.

XLOOKUP searches a lookup array and returns the matching value from a return array. It can reference ranges in another worksheet in the same workbook and in a saved external workbook; WPS Spreadsheets adds the file path automatically when the source workbook is open.

1
Open both workbooks

In WPS Spreadsheets, open the purchase order workbook and the source workbook that contains part IDs and prices. Save the source workbook first so its path can be referenced reliably.

2
Select the destination cell

Click the cell where the part price should appear, such as the first row of the purchase order price column.

3
Enter the XLOOKUP formula

Type =XLOOKUP(A2,[Source.xlsx]Parts!$A:$A,[Source.xlsx]Parts!$B:$B,"Not found") and replace A2, Source.xlsx, Parts, $A:$A, and $B:$B with your actual part ID cell, workbook name, worksheet name, lookup column, and price column.

4
Calculate the purchase order total

In the total column, enter a formula such as =C2*D2*(1+E2) where C2 is quantity, D2 is the returned price, and E2 is the optional markup rate, then fill the formulas down.

Use XLOOKUP in WPS Spreadsheets to retrieve part prices from another worksheet
Formula returned the correct price: If the part ID is found, XLOOKUP returns the matching price from the source worksheet. Keep the source workbook in a stable folder so external links continue working after you close and reopen the destination file.

Retrieve Part Prices Across Worksheets with WPS Spreadsheets

Use XLOOKUP, VLOOKUP, or INDEX and MATCH in WPS Spreadsheets to pull part prices from another worksheet or saved workbook, then calculate purchase order totals with optional markup. WPS Spreadsheets keeps formulas and cross-workbook links compatible with Excel workbooks.

  1. 1. Download and install WPS Office: Download WPS Office free from the official WPS site, install it, and open WPS Spreadsheets.
  2. 2. Open your purchase order and price source workbook: Open both the destination workbook and the source workbook that contains part IDs and prices, then save the source workbook.
  3. 3. Apply XLOOKUP or a compatible lookup formula: In the price cell, enter =XLOOKUP(A2,[Source.xlsx]Parts!$A:$A,[Source.xlsx]Parts!$B:$B,"Not found") or use VLOOKUP/INDEX-MATCH for older Excel compatibility.
  4. 4. Calculate totals and save: Add the quantity and markup formula, fill down, and save the workbook in WPS Spreadsheets as a standard .xlsx file.
Current WPS Spreadsheets supports XLOOKUP for exact-match lookups across worksheets and saved workbooks.Saves and opens .xlsx files with full Microsoft Excel formula and format compatibility.Free, lightweight, and familiar ribbon layout reduces the learning curve.Cross-workbook formulas keep working when source files remain in a stable folder.
microsoft office alternative - wps office

Frequently Asked Questions

Does WPS Spreadsheets support XLOOKUP?

Yes, current versions of WPS Spreadsheets support XLOOKUP. If your version does not, use VLOOKUP or INDEX and MATCH to achieve the same cross-sheet lookup.

Why does my external workbook formula show #REF! or ask for an update?

This usually means the source workbook was moved, renamed, or not saved. Open both workbooks, save the source workbook first, and keep it in a stable folder; then edit the formula or refresh links.

Can XLOOKUP pull prices from a worksheet in another workbook?

Yes. Open both workbooks, select the lookup and return ranges from the source workbook, or type the workbook and worksheet reference, and WPS Spreadsheets adds the file path automatically.

What formula should I use if some users have Excel 2019?

Use VLOOKUP with FALSE for an exact match, or INDEX and MATCH. These work in both WPS Spreadsheets and older Excel versions.

How do I calculate purchase order totals with markup?

After returning the price, multiply quantity by price and by 1 plus the markup rate. For example, =C2*D2*(1+E2) where C2 is quantity, D2 is price, and E2 is markup.