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

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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