Function Problems

Match Names in Excel Columns and Return Related Data

Rana GarciaRana Garcia Dec 2, 2026 869 views

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.

Match Names in Excel Columns and Return Related Data
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

Select cell F2 and enter =IFERROR(INDEX(K$2:K$22,MATCH($C2,$J$2:$J$22,0)),"").

2
Fill across

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.

3
Fill down

Select F2:H2 and drag the fill handle down through the rows containing names in column C.

Use INDEX and MATCH to return data for each name
How matches are handled: MATCH returns the first exact match in column J. IFERROR displays a blank if no match is found, but it also hides other formula errors.
Match spreadsheet data

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. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 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. 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. 4. Save the results: Use File > Save or Save As to save the workbook in your preferred Excel format.
Match names and return related values without VBAOpen and edit Microsoft Excel XLS and XLSX filesFill formulas across columns and down rowsWork in a familiar spreadsheet interface
microsoft office alternative - wps office

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.