RANK.EQ excluding Blanks

iggydarsa

Well-known Member
Joined
Jun 28, 2005
Messages
1,801
Office Version
  1. 2019
Platform
  1. Windows
I have a table (tbl) with columns of Site and Sale
I want to Rank the Sales where Site is not blank.

On Column C (Rank) I using
Excel Formula:
=RANK.EQ([@Sale], [Sale], 1)
but not sure how to exclude the Site where it is blank so that the resultset would be like Column D (Expected)

SiteSaleRankExpected
A
10​
1​
1​
C
15​
4​
3​
13​
3​
B
12​
2​
2​
D
17​
5​
4​

Thanks!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How about
Fluff.xlsm
ABC
1SiteSaleRank
2A101
3C153
413 
5B122
6D174
Data
Cell Formulas
RangeFormula
C2:C6C2=IF(A2="","",COUNTIFS($A$2:$A$6,"<>",$B$2:$B$6,"<"&B2)+1)
 
Upvote 0
Solution
Beautiful, thank you!

And what if I wanted to do it in reverse order, meaning
4
2
-
3
1
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,326
Members
451,637
Latest member
hvp2262

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