Match Names in Excel Columns and Return Related Data
Question details
Match names in column C against names in column J and return the corresponding values from columns K, L, and M into columns F, G, and H.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The worksheet contains a list of names to look up and a separate table with related data.
- Observed behavior
- Each matching name should have its related values displayed in columns F through H; unmatched names should return blank cells.
Check that names are in columns C and J, that columns K–M contain the data to return, and that columns F–H are available for the results. The examples assume the lookup table runs from row 2 through row 22; adjust those row numbers to match your data.
Use INDEX and MATCH to return data for each name
Use this formula in Excel versions that support INDEX and MATCH, then fill it across and down.
Select cell F2 and enter =IFERROR(INDEX(K$2:K$22,MATCH($C2,$J$2:$J$22,0)),"").
Drag the fill handle from F2 across to H2. The return range shifts from column K to L and M, while the lookup range remains in column J.
Select F2:H2 and drag the fill handle down through the rows containing names in column C.

Use XLOOKUP to return matching data
Use XLOOKUP if your Excel version supports it and you prefer a shorter lookup formula.
Match names and return related data in WPS Spreadsheet
Use INDEX and MATCH in WPS Spreadsheet to look up names and fill related values across multiple columns.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Enter the lookup formula: Select F2 and enter =IFERROR(INDEX(K$2:K$22,MATCH($C2,$J$2:$J$22,0)),""). Adjust row 22 if your lookup table has a different last row.
- 3. Fill across and down: Drag the fill handle from F2 across to H2, then select F2:H2 and fill down alongside the names in column C.
- 4. Save the results: Use File > Save or Save As to save the workbook in your preferred Excel format.

Frequently Asked Questions
What happens if a name appears more than once in column J?
Both formulas return data for the first matching name in the lookup range. Check column J for duplicates if each name should have only one corresponding record.
Why is a result blank even though the name appears in column J?
Check that the name in column C matches the one in column J without extra spaces, and confirm that the lookup range includes the relevant row. IFERROR can also hide formula errors.
How do I extend the formula to a larger lookup table?
Change each row 22 reference in the formula to the last row of your lookup table before filling it across and down. Keep the lookup and return ranges the same size.
Do I need VBA to match names and return multiple values?
No. Enter the INDEX and MATCH formula in F2 and fill it across to H and down to return the related values without VBA.




