Function Problems

Excel Formula to Match Values Across Sheets and Return Column AM

Huda QurayshiHuda Qurayshi Dec 2, 2026 869 views

Question details

Match each value in Sheet 1 column A against Sheet 2 column A and return the corresponding value from Sheet 2 column AM to Sheet 1 column J.

Match Values Across Excel Sheets and Return Column AM
Product
Microsoft Excel
Device & OS
not provided
Scenario
A workbook contains lookup values on Sheet 1 and matching records with return values on Sheet 2.
Observed behavior
Sheet 1 column J should display the column AM value from the matching row on Sheet 2.
Before you start

Check that the source worksheet is named Sheet 2 and that its lookup values are in column A and return values are in column AM. These formulas assume data begins in row 2; adjust the references if your layout differs.

Solution 1Recommended

Use XLOOKUP to Return Column AM

Use this formula in Excel for Microsoft 365 or Excel 2021 and later.

1
Enter the lookup formula

On Sheet 1, select cell J2 and enter =XLOOKUP(A2,'Sheet 2'!$A:$A,'Sheet 2'!$AM:$AM,"").

2
Adjust the sheet name

If the source worksheet has a different name, replace 'Sheet 2' in both references with its actual name.

3
Fill the formula down

Select J2 and drag the fill handle down column J for the remaining rows.

Use XLOOKUP to Return Column AM
Match behavior: XLOOKUP returns the first matching row. If no match is found, the formula returns an empty string.
Work with spreadsheets in WPS Office

Match Values Across Sheets in WPS Spreadsheet

Use INDEX and MATCH in WPS Spreadsheet to look up values on another sheet and return the corresponding column AM value.

  1. 1. Open the workbook: In WPS Spreadsheet, open the workbook containing Sheet 1 and Sheet 2.
  2. 2. Enter the formula: Select J2 on Sheet 1 and enter =IFERROR(INDEX('Sheet 2'!$AM:$AM,MATCH(A2,'Sheet 2'!$A:$A,0)),"").
  3. 3. Check the source name: Replace 'Sheet 2' in the formula with the actual source worksheet name if it differs.
  4. 4. Fill down: Select J2 and drag its fill handle down column J to apply the formula to the other rows.
Return matching values across worksheets with a formulaOpen and edit Microsoft Excel XLS and XLSX filesUse familiar spreadsheet formulas and a familiar interface
microsoft office alternative - wps office

Frequently Asked Questions

What happens if a value appears more than once on Sheet 2?

Both formulas return the column AM value from the first matching row in Sheet 2 column A.

Why does the result appear blank?

The formulas return an empty string when no match is found. Check that the values in both column A ranges match and that the source sheet name is correct; the INDEX and MATCH formula also hides other errors.

What if the source sheet has a different name?

Replace each 'Sheet 2' reference in the formula with the actual worksheet name, such as 'Sales Data'.

Can I use the formula in an older version of Excel?

Yes. If XLOOKUP is unavailable, enter =IFERROR(INDEX('Sheet 2'!$AM:$AM,MATCH(A2,'Sheet 2'!$A:$A,0)),"") in Sheet 1 cell J2 and fill it down.