Rank 2 columns without Skipping Numbers

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
623
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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