Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=INDEX(A2:A4,MATCH(SMALL(B2:B4,1),B2:B4,0))Computed by a real spreadsheet engine on the sample data below.
| Name | RandNum |
| Alice | 0.72 |
| Bob | 0.31 |
| Carol | 0.55 |
=INDEX(A2:A4,MATCH(SMALL(B2:B4,1),B2:B4,0))→Bob
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Use =INDEX(A2:A51,SORTBY(SEQUENCE(50),RANDARRAY(50)),SEQUENCE(5)) — or more simply, add a RAND column, sort by it, and take the top 5.
Duplicates are theoretically possible but astronomically rare. Use RANK.EQ with a tiebreaker if needed: =RANK(B2,$B$2:$B$20)+COUNTIF($B$2:B2,B2)-1.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: