By: Shamima Sultana

In reply to Phil.

Hello Phil,

You can use the FILTER function (for Excel 365/2021) or a combination of INDEX and SMALL to retrieve multiple IDs corresponding to the same rank.

Try this formula if you’re using Excel 365/2021:
=FILTER(X5:X30, W5:W30=3)
This will return all IDs where the rank is 3.

If you’re using an older version of Excel, use this array formula:
=INDEX(X$5:X$30, SMALL(IF(W$5:W$30=3, ROW(W$5:W$30)-ROW(W$5)+1), ROW(A1)))
1. Press Ctrl + Shift + Enter after typing the formula (if using older Excel).
2. Drag it down to get multiple results.

Let me know if you need further clarification!

Regards
ExcelDemy