RANK on volume (Column B) if Date (Column D) is over a year old

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
597
Office Version
  1. 365
I need to create "League Table" of anything over a year old, but it needs to be sorted by the largest volume. I have tried to use RANK, but when I reference it to Cell B which contains the volume, it does not want to work!
Code:
=IF(D2>TODAY()-365,"",RANK(B2,$B$2:$B$21,1))
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try
Code:
=IF(D2>TODAY()-365,"",COUNTIFS($D$2:$D$21,"<="&(TODAY()-365),$B$2:$B$21,"<"&B2)+1)
 
Last edited:
Upvote 0
Hi
Unfortunately, that does not quite do what I need. It needs to rank the highest value in Column B with a 1, the second highest as a 2, etc, hence why I was looking at the RANK option....

Try
Code:
=IF(D2>TODAY()-365,"",COUNTIFS($D$2:$D$21,"<="&(TODAY()-365),$B$2:$B$21,"<"&B2)+1)
 
Upvote 0
It needs to rank the highest value in Column B with a 1,
the second highest as a 2, etc,
hence why I was looking at the RANK option....
Change "<" to ">"

=IF(D2>TODAY()-365,"",COUNTIFS($D$2:$D$21,"<="&(TODAY()-365),$B$2:$B$21,">"&B2)+1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,471
Members
453,726
Latest member
JoeH57

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