Sort Ascending by Rank in Excel

abadilala

New Member
Joined
Sep 29, 2017
Messages
27
tCXlMF1
https://imgur.com/tCXlMF1

Hi, can anyone help me how to sort data in excel with help of rank function?
I have made until the rank function, however, I dont have any idea how to get the expected result in column F.

Please help!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
RANK won't give you the same value for different numbers, so how did you get the values the first time
 
Upvote 0
Based on your image and if your product codes start in D4...
Make F3 blank, put the formula
=IF(LEFT(D4,1)<>LEFT(D3,1),F3+1,F3)
in F4 and copy down. Copy and paste column F as values, select the whole range and sort by column F then column E.

Columns D & E should now be in the order requested.
 
Upvote 0
HI Mark,
thank you for replying. However, what I want is to create formula in F column. Not with Excel build in function.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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