Hello all,
I'm sure that there's an easy answer to my problem but for the likes of me I can't figure it out. I'm crunching some data and could use a bit of help here.
I have 4 columns: EmployeeID, Classification, DateofHire, Salary
I want to create a formula that returns the highest salary of a person in a classification that was hired after the employee in question.
Here are the results I'd like to see for the entries below:
3100
0
3200
0
3200
0
EmployeeID,Classification,DateofHire,Salary
1,janitor,1/1/2002,3000
2,cook,2/1/2002,2500
3,maid,3/1/2002,2600
4,janitor,4/1/2002,3100
5,maid,5/1/2002,2800
6,maid,6/2/2002,3200
I was trying to create an array using the formula: =MAX(IF(B2:B7,=B2,If(C2:C7>C2),D2:D7))
If my explanation doesn't make sense please let me know and I can try again.
Bookmarks