Rank Formula - When a Range Contains Zeroes

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
976
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have a range of 10 values in cell range Y4 through Y13
1 Y4 = 0
2 Y5 = 2
3 Y6 = 1
4 Y7 = 2
5 Y8 = 0
6 Y9 = 1
7 Y10 = 1
8 Y11 = 0
9 Y12 = 1
10 Y13 = 3

How do I rank the above range from highest value to lowest value?

Thank you in advance


So in the above example starting in cell Z4 through Z13 it should be:
10,2,4,3,6,7,9,1,5,8
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
The following formula is giving the incorrect ranking values from 1 through 10
=RANK($Y4,$Y$4:$Y$13)+COUNTIF($Y$4:$Y4,$Y4)-1

The above formula will work when there are no zeros in any of the cells.
Can the formula be changed if any cells from Y4 through Y13 contain a zero?

Thank you
 
Upvote 0
I found a solution. Formula in previous post worked.
Glad to hear you got the solution.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,237
Members
453,152
Latest member
ChrisMd

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