Excel Formula to Match Values Across Sheets and Return Column AM
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.

- 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.
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.
Use XLOOKUP to Return Column AM
Use this formula in Excel for Microsoft 365 or Excel 2021 and later.
On Sheet 1, select cell J2 and enter =XLOOKUP(A2,'Sheet 2'!$A:$A,'Sheet 2'!$AM:$AM,"").
If the source worksheet has a different name, replace 'Sheet 2' in both references with its actual name.
Select J2 and drag the fill handle down column J for the remaining rows.

Use INDEX and MATCH in Older Excel Versions
Use this alternative if your Excel version does not support XLOOKUP.
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. Open the workbook: In WPS Spreadsheet, open the workbook containing Sheet 1 and Sheet 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. Check the source name: Replace 'Sheet 2' in the formula with the actual source worksheet name if it differs.
- 4. Fill down: Select J2 and drag its fill handle down column J to apply the formula to the other rows.

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.




