PERCENTRANK by group excluding another group

missyoli

New Member
Joined
Jun 17, 2020
Messages
1
I am trying to calculate the percentrank of each annual salary by salary grade level but need to exclude for instance departments that start with "IT ". For those who are in the IT department I would like to see blank and make sure their number is not part of the percentrank calculation. So, I need a conditional formula to calculate column E. Below is the table I am trying to achieve. My column D is easy. This is the formula for column D is =PERCENTRANK(IF($B$2:$B$13=B2,$C$2:$C$13),C2) which appears to work. Any ideas?


A​
B​
C​
D​
E​
DeptSalary GradeAnnual SalaryPercent Rank (All)Percent Rank
(Excl. IT *)
2Finance12$16,7530%0%
3Finance12$20,93327%38%
4Finance12$38,33455%63%
5Human Resources12$18,65718%25%
6Human Resources12$21,47236%50%
7Human Resources12$48,01573%75%
8Marketing12$17,5539%13%
9Marketing12$51,91682%88%
10Marketing12$53,69091%100%
11IT Application12$31,79745%
12IT Development12$39,71664%
13IT Operations12$54,950100%
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I think someone who understands SUMPRODUCT( ) can handle this. Unfortunately, I always struggle miserably with it.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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