RANK.EQ excluding Blanks

iggydarsa

Well-known Member
Joined
Jun 28, 2005
Messages
1,810
Office Version
  1. 365
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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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