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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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