avoid #N/A error using =RANK formula

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,604
Office Version
  1. 365
Platform
  1. Windows
Hey all

I have a simple list of numbers that I'm using the =RANK formula to show the TOP 5

NDA.v8.xlsm
BCDEF
1NUMBERRANK
2174Top 5
398123
4310221
5174319
6231417
7695#N/A
8193
9212
10117
11126
Sheet1
Cell Formulas
RangeFormula
F3:F7F3=XLOOKUP(E3,$C$2:$C$11,$B$2:$B$11)
C2:C11C2=RANK(B2,$B$2:$B$11)


Is there a way to avoid the situation where I have two numbers having the same value thus getting the #N/A error as shown in this example
If possible instead of the error just show the same value that it would be equal to - so in my example above F7 would show the value of 17 as this is EQUAL 4th place

Hope this makes sense and thanks in advance
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
How about
+Fluff 1.xlsm
BCDEF
1NUMBERRANK
2174Top 5
398123
4310221
5174319
6231417
769517
8193
9212
10117
11126
12
Data
Cell Formulas
RangeFormula
F3:F7F3=INDEX(SORT(B2:C11,2),SEQUENCE(5),1)
C2:C11C2=RANK(B2,$B$2:$B$11)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top