Function Problems

How to Use XLOOKUP for Partial Client Numbers and Suffixes

John WilsonJohn Wilson Nov 10, 2026 869 views

Question details

The user needs to retrieve phone numbers or other associated data using XLOOKUP when the unique identifier is split into a base client number and a suffix (like -0 or -1) across different columns.

How to Use XLOOKUP for Partial Client Numbers and Suffixes
Product
Spreadsheets
Device & OS
not provided
Scenario
Attempting to match a specific record when the unique lookup value is divided into two separate components (base number and suffix) in the master data table.
Observed behavior
Standard XLOOKUP searches only a single column by default, failing to find exact matches unless the criteria and lookup arrays are combined or modified.
Before you start

Ensure that both tables format the client numbers and suffixes identically (e.g., both stored as Text or both as Numbers) and clear any trailing spaces to avoid #N/A errors.

Solution 1Recommended

Combine Lookup Arrays Directly in the XLOOKUP Formula

Use the ampersand (&) operator to concatenate multiple criteria and lookup arrays directly within the XLOOKUP formula without altering your source data.

This method evaluates the combined string in memory, allowing you to match two or more columns simultaneously without the need to permanently change your spreadsheet structure.

1
Select the destination cell

Click on the cell where you want the retrieved phone number to be displayed.

2
Input the concatenated XLOOKUP formula

Type the formula combining the criteria: =XLOOKUP([@[Client Number]], Table1[Client Number]&Table1[-0 / -1], Table1[Phone Number], "No match"). Adjust the table and column names to match your actual data.

3
Execute the lookup

Press Enter to execute the formula. The formula concatenates the base number and suffix columns on the fly to find the exact match.

4
Apply to the entire column

Drag the fill handle down from the bottom right corner of the cell to apply the formula to the rest of the rows in your table.

Combine Lookup Arrays Directly in the XLOOKUP Formula
Dynamic References: Using Structured References (like Table1[...]) makes the formula dynamic. If your data is formatted as an Excel Table, the ranges will automatically update as new rows are added.
Efficient Spreadsheet Data Management

Master Complex Lookups with WPS Spreadsheet

WPS Spreadsheet fully supports advanced functions like XLOOKUP, allowing you to combine criteria and retrieve complex data sets effortlessly. It offers a familiar interface and seamless compatibility with Microsoft Excel files.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your existing Excel workbook (.xlsx).
  2. 2. Select the target cell: Click on the cell where you want to output the lookup result.
  3. 3. Enter the formula: Type your combined XLOOKUP formula, using the formula autocomplete feature to easily select table columns.
  4. 4. Retrieve the data: Press Enter to execute the function and pull your data accurately.
Full compatibility with Excel's XLOOKUP, VLOOKUP, and array formulas.Free and lightweight alternative for powerful data analysis.Built-in data cleaning tools to easily remove spaces and fix text formats.Supports structured table references for dynamic, auto-updating calculations.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my XLOOKUP formula return "No match" even when the data exists?

This usually happens due to data type mismatches (e.g., numbers stored as text in one table but not the other) or hidden trailing spaces. Use the TRIM function or ensure both tables format the client numbers identically before looking them up.

Can I use multiple criteria with XLOOKUP without concatenating?

Yes, you can use boolean logic by multiplying arrays. For example, =XLOOKUP(1, (Table1[Client Number]=A2)*(Table1[Suffix]=B2), Table1[Phone Number]) is highly effective for multiple conditions without joining text strings.

Is XLOOKUP available in older spreadsheet versions?

XLOOKUP is a newer function available in Microsoft 365, Excel 2021, and modern versions of WPS Office. For older versions, you may need to use an INDEX and MATCH combination using array entry (Ctrl+Shift+Enter) to evaluate combined criteria.