How to Return Different Names for Duplicate Values in Excel
Question details
The user needs a method to retrieve multiple distinct names from one column that correspond to duplicate numeric values in another column.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Pulling multiple records or names (like player ratings) that share the exact same numeric value in the lookup column.
- Observed behavior
- Standard lookup functions like VLOOKUP only return the first matching instance, failing to extract all consecutive matches for the duplicate value.
Ensure you clear any existing formulas or data in your target output columns before entering the new array formula to prevent calculation conflicts.
Use an INDEX and SMALL Array Formula
Combine IFERROR, INDEX, SMALL, IF, and ROW functions to iterate through a data range and extract all matching names sequentially.
In older versions of Excel such as Excel 2007, you cannot rely on dynamic array functions like FILTER. Instead, you must use a traditional array formula.
This formula works by generating an array of row numbers where the condition is met, and then using the SMALL function to extract them one by one as you copy the formula down.
Highlight the cells in your target columns (for example, AD and AE) and press Delete to clear out any old formulas.
Select the first cell where you want the name to appear (e.g., AD2) and input the formula: =IFERROR(INDEX('player ratings'!$B$5:$B$756,SMALL(IF('player ratings'!$J$5:$J$756=AE26,ROW('player ratings'!$B$5:$B$756)-ROW('player ratings'!$B$5)+1),ROWS($AE$26:$AE26))),"")
Do not simply press Enter. Instead, hold down Ctrl + Shift and then press Enter. This tells the application to evaluate it as an array formula, surrounding it with curly braces {}.
Click and drag the fill handle at the bottom-right corner of the cell downwards to list all the multiple names. The IFERROR function will ensure that blank cells are displayed once all names for that numeric value are found.
Easily Handle Complex Data Lookups with WPS Spreadsheet
WPS Spreadsheet fully supports advanced array formulas, including INDEX and SMALL combinations, allowing you to seamlessly extract duplicate values just as you would in Microsoft Excel.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
- 2. Input the array formula: Paste the INDEX/SMALL formula into your target cell.
- 3. Evaluate the formula: Press Ctrl + Shift + Enter to properly execute the array calculation.
- 4. Fill the series: Drag the fill handle down to extract all corresponding names for the duplicate values.

Frequently Asked Questions
Why does standard VLOOKUP not work for duplicate values?
VLOOKUP is designed to scan down a column and return only the first matching record it encounters. To extract multiple different names for the same lookup value, you must use an array formula like INDEX and SMALL, or the newer FILTER function if your software supports it.
What does pressing Ctrl+Shift+Enter do?
Pressing Ctrl+Shift+Enter evaluates the formula as an array formula. This allows functions like IF and ROW to process an entire range of values (an array) at once rather than a single cell, which is necessary for the INDEX and SMALL combination to work.
Why is my formula returning a blank cell?
The formula uses the IFERROR function to return a blank ("") when there are no more matching names to list. If it returns blank for the very first cell, double-check your cell references, ensure the lookup value exists in the source column, and verify that you confirmed the formula with Ctrl+Shift+Enter.
Can I use the FILTER function instead of this complex formula?
Yes, if you are using newer versions of Excel (Excel 365/2021) or updated versions of WPS Office that support dynamic array functions, you can use the much simpler FILTER function, which automatically spills the results and does not require Ctrl+Shift+Enter.




