RANK by two columns to exclude rows with a specific cell value in a third column

janetk411

New Member
Joined
Feb 7, 2019
Messages
15
A
B
C
D
1
BRANCH

CLIENT
FILECNT
RANK
2
12
ABRE01
50
1
3
12
AEVA01
45
2
4
12
NIEX01
46
5
12
NIEX02
47
6
12
CAI00
29
3
7
32
ABRE02
15
3
8
32
AEVA01
45
1
9
32
NIEX05
9
10
32
NIEX07
47
11
32
CAVI00
40
2

<tbody>
</tbody>

The table above represents the number of files, by client, by branch. I want to rank the FILE COUNT number in descending order, by BRANCH but I do not want to include the client codes that begin with the first four letters NIEX in the ranking.
The RANK column represents the ranking that the formula should create.
Can someone help me with a formula to auto create the ranking in the RANK column?
I appreciate any assistance some one can give me.
Thank you in advance.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Since Excel doesn't have a RankIf function, you could use a Countifs function.

Excel 2010
ABCD
1BRANCHCLIENTFILECNTRANK
212ABRE01501
312AEVA01452
412NIEX0146
512NIEX0247
612CAI00293
732ABRE02153
832AEVA01451
932NIEX059
1032NIEX0747
1132CAVI00402

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D2=IF(LEFT(B2,4)="NIEX","",COUNTIFS(A:A,A2,C:C,">"&C2,B:B,"<>NIEX*")+1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Yeah! Thank you. That did it but..... this allows for duplicate ranking. Do you know how to change this so each rank is unique?
 
Upvote 0
Excel 2010
ABCDE
1BRANCHCLIENTFILECNTTIEBREAKERRANK
212ABRE0150501
312AEVA0145452
412NIEX014646
512NIEX024747
612CAI0029293
732ABRE0215154
832AEVA0145451
932NIEX0599
1032NIEX074747
1132CAVI0040403
1232CAI004040.12

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D2=C2+(COUNTIFS(A$2:A2,A2,C$2:C2,C2)-1)*0.1
E2=IF(LEFT(B2,4)="NIEX","",COUNTIFS(A:A,A2,D:D,">"&D2,B:B,"<>NIEX*")+1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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