• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Index Match assign department based on employee and Job

Hello Guru
Can I get some help in solving my excel problem.

If the employee is working on J366 then the dept should be picked from codes tab. If the employee is working on Management 2021 or PTO 2021 then the dept should be picked from emp tab

Example: if Employee-5 works on J366 the dept is TIP. If Employee-5 works on Management 2021 or PTO 2021 then the dept should be PIE.

Thanks for all your help.
 

Attachments

  • Test.xlsx
    13.9 KB · Views: 8
excelnovive2000, Good morning.

Try to use:
E4 -->
Code:
=IF(OR(D4="Management 2021";D4="PTO 2021");INDEX(emp[Depts];MATCH(B4;emp[Employee];0));INDEX(codes[Dept];MATCH(D4;codes[Analytic Account];0)))


Push it down as necessary.

Is this what you want?

I hope it helps.
 

Attachments

  • 09-03-2021_Account_allocation.xlsx
    12.5 KB · Views: 8
excelnovive2000, Good morning.

Try to use:
E4 -->
Code:
=IF(OR(D4="Management 2021";D4="PTO 2021");INDEX(emp[Depts];MATCH(B4;emp[Employee];0));INDEX(codes[Dept];MATCH(D4;codes[Analytic Account];0)))


Push it down as necessary.

Is this what you want?

I hope it helps.

Thanks Marcilio. That worked. Really appreciate your help
 
Back
Top