Rank with Multiple Criteria

parag385

New Member
Joined
Jun 13, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have data set where I want to rank individuals of each department separately based on their designation and then based on their years of experience. Please refer to below excel where I want the output in column E, F & G. Also, if 2 employees of same department have same designation & same years of experience then they should get different rank (like for Lyra & Peter of human resource department, highlighted in green).

I tried different excel functions but was unable to get the desired result.

Thanking you in advance.

Data - Rank.xlsx
ABCDEFG
1NameDepartmentDesignationNumber of years with companyRank - FinanceRank - HRRank - Marketing
2BenFinanceDirector51
3DannyFinanceAnalyst34
4DavidMarketingVice President72
5JacobHuman ResourceDirector42
6JennyHuman ResourceManaging Director21
7LeoHuman ResourceVice President63
8LyraHuman ResourceAssociate14
9MeenaMarketingDirector51
10PatrickFinanceAssociate12
11PeterHuman ResourceAssociate15
12SamMarketingAssociate63
13SammyFinanceAnalyst43
14
15
16Order of Designation
17Managing Director
18Director
19Vice President
20Associate
21Analyst
Sheet1
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDEFG
1NameDepartmentDesignationNumber of years with companyFinanceHuman ResourceMarketing
2BenFinanceDirector51  
3DannyFinanceAnalyst34  
4DavidMarketingVice President7  2
5JacobHuman ResourceDirector4 2 
6JennyHuman ResourceManaging Director2 1 
7LeoHuman ResourceVice President6 3 
8LyraHuman ResourceAssociate1 4 
9MeenaMarketingDirector5  1
10PatrickFinanceAssociate12  
11PeterHuman ResourceAssociate1 5 
12SamMarketingAssociate6  3
13SammyFinanceAnalyst43  
14
15
16Order of Designation
17Managing Director
18Director
19Vice President
20Associate
21Analyst
Sheet6
Cell Formulas
RangeFormula
E2:G13E2=LET(f,FILTER($A$2:$D$13,$B$2:$B$13=E$1),IF($B2=E$1,XMATCH($A2,INDEX(SORTBY(f,XMATCH(INDEX(f,,3),$B$17:$B$21),1,INDEX(f,,4),-1),,1)),""))
 
Upvote 0
Here's an array option.
Book1
ABCDEFG
1NameDepartmentDesignationNumber of years with companyFinanceHuman ResourceMarketing
2BenFinanceDirector51  
3DannyFinanceAnalyst34
4DavidMarketingVice President72
5JacobHuman ResourceDirector42
6JennyHuman ResourceManaging Director21
7LeoHuman ResourceVice President63
8LyraHuman ResourceAssociate14
9MeenaMarketingDirector51
10PatrickFinanceAssociate12
11PeterHuman ResourceAssociate15
12SamMarketingAssociate63
13SammyFinanceAnalyst43
14
15
16Order of Designation
17Managing Director
18Director
19Vice President
20Associate
21Analyst
Sheet3
Cell Formulas
RangeFormula
E2:G13E2=LET(a,$A$2:$A$13,b,$B$2:$B$13=E1,c,$C$2:$C$13,d,$D$2:$D$13,e,$B$17:$B$21, XLOOKUP(IF(b,a),SORTBY(a,XLOOKUP(IF(b,c),e,SEQUENCE(5,,5,-1),0),-1,d,-1),SEQUENCE(ROWS(a)),""))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
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