Rank by Year/Client/Count when lines are duplicated

janetk411

New Member
Joined
Feb 7, 2019
Messages
15
YEAR
YRFILECNT
YEARRANK
CLIENT
BR
STA
STACNT
19
342
1
ABC
32
CHIO
207
19
34
1
ABC
32
CHIA
134
19
342
1
ABC
42
LAX
1
19
267
2
DEF
52
SFO
250
19
267
2
DEF
52
SFA
16
19
267
2
DEF
32
CHIA
1
19
223
3
GHI
32
CHIA
222
19
223
3
GHI
32
CHIO
1
19
72
4
JKL
32
CHIO
44
19
72
4
JKL
32
CHIA
28
19
72
5
MNO
32
CHIO
44
19
72
5
MNO
32
CHIA
28
18
201
1
ABC
32
CHIO
183
18
201
1
ABC
32
CHIA
18
18
179
2
DEF
32
CHIA
179
18
95
3
GHI
7
DTT
95

<tbody>
</tbody>
The table above represents the number of files (B - YRFILECNT), per client (D), per year (A).
I need to rank the YRFILECNT as shown in column C. So client ABC is ranked #1 2019. Client DEF is #2 with the second highest rank.
Clients JKL and MNO had the same count in 2019 but I want a unique rank assigned to each client.
Can someone help me with this formula? Thank you in advance.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If this is a table, could you not do it using a custom sort (found in the filter tab)?
sort each value in the method, adding a new level for each.
 
Upvote 0
dnorm,
Sorry, I am not clear on what you are suggesting ... How would that accomplish populating the "rank" values in the column?
 
Upvote 0

YEAR

YRFILECNT
YEARRANK
CLIENT
BR
STA
STACNT
19
342
1
ABC
32
CHIO
207
19
342
1
ABC
42
LAX
1
19
267
2
DEF
52
SFO
250
19
267
2
DEF
52
SFA
16
19
267
2
DEF
32
CHIA
1
19
223
3
GHI
32
CHIA
222
19
223
3
GHI
32
CHIO
1
19
72
4
JKL
32
CHIO
44
19
72
4
JKL
32
CHIA
28
19
72
5
MNO
32
CHIO
44
19
72
5
MNO
32
CHIA
28
19
34
1
ABC
32
CHIA
134
18
201
1
ABC
32
CHIO
183
18
201
1
ABC
32
CHIA
18
18
179
2
DEF
32
CHIA
179
18
95
3
GHI
7
DTT
95

<tbody>
</tbody>

<tbody>
</tbody>

Are you trying to achieve something like this?
 
Last edited:
Upvote 0
this was done using a layered sort filter.
unfortunately I cannot add pictures but;

On the ribbon, in the Sort &Filter dropdown options. Select the custom sort and add levels of sort.

Filter by:

YEAR - Largest to Smallest
YRFILECNT - Largest to Smallest
CLIENT - A to Z
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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