Rank 2 columns without Skipping Numbers

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
624
Office Version
  1. 2016
Platform
  1. Windows
XYRANK
2318
2389
25213
25714
2217
2136
25815
24512
224
24010
24111
26116
255
19982
19982
1621

the code below is what I current have and above is the results.
VBA Code:
=RANK(X3,$X$3:$X$401,1)+COUNTIFS($X$3:$X$401,X3,$Y$3:$Y$401,"<"&Y3)

I need the Results for the two in red need to be
19982
19983


using the above, if column A and B are manually imputed how would I rank the two columns in Rank Column. I would prefer a Non-Array formula and need it to Not Skip any numbers if there are Duplicate values.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You can just add another countifs to the end of your formula
=RANK(X3,$X$3:$X$401,1)+COUNTIFS($X$3:$X$401,X3,$Y$3:$Y$401,"<"&Y3)+COUNTIFS($X$2:$X2,X3,$Y$2:$Y2,Y3)
 
Upvote 0

Forum statistics

Threads
1,215,180
Messages
6,123,504
Members
449,101
Latest member
mgro123

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