troubleshooting Question

# Spreadsheet formula: Dynamic sorting of top 5 value in an array asked on
I might be tired or clueless but I can't figure out why my formula is failing in not finding a value match.

I have 3 columns:
(A) is the position (1 - 5)
(B) lists the name of one of the top 5
Formula:
=ArrayFormula(INDEX(A\$26:A\$175,MATCH(C2,(Round(\$D\$26:\$D\$175)+ROW(\$D\$26:\$D\$175)/10000),0)))
(C) is the top 5 values picked from the data. The top five is calculated with the formula: =TRUNC(ArrayFormula((LARGE((Round(\$D\$26:\$D\$175,2)+ROW(\$D\$26:\$D\$175)/10000),A2))),2)

The data is in the lower rows of A21:A and D21:D

I'm using Google Sheets, but it shouldn't greatly differ from an Excel solution. I think "ArrayFormula" might be the only difference.

Here is the test sheet (feel free to edit it):

Thank you so much for your help.
NorieSenior Associate
###### Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.