Hello Everyone
I'm looking for some help with an If statement and vlookup (I think). I would like to use a formula in column B, which looksup using the Role ID in Column A, against the role ID in column D and then returns the name of the employee. However, I have repeated role IDs in column D, because some employees have resigned and a new employee has replaced them and been assigned the same role ID. I can't delete these resigned employees because I need to keep this historical information in the sheet. Is there a way I can use an if statement (or similar) to ignore the role-if if column F shows as resigned? So I only return the name of the current employee in column B?
I use Excel 365. Thank you in advance.
I'm looking for some help with an If statement and vlookup (I think). I would like to use a formula in column B, which looksup using the Role ID in Column A, against the role ID in column D and then returns the name of the employee. However, I have repeated role IDs in column D, because some employees have resigned and a new employee has replaced them and been assigned the same role ID. I can't delete these resigned employees because I need to keep this historical information in the sheet. Is there a way I can use an if statement (or similar) to ignore the role-if if column F shows as resigned? So I only return the name of the current employee in column B?
I use Excel 365. Thank you in advance.
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Role_ID | Employee Name | Role-ID | Employee Name | Status | |||
2 | XE-CEC1 | XE-CEC1 | Amy | Current | ||||
3 | XE-CEB1 | XE-CEB1 | Fred | Resigned | ||||
4 | XC-CEH1 | XE-CEB1 | Anne | Current | ||||
5 | XL-CEB1 | XL-CEB1 | Mo | Current | ||||
6 | XJ-CEB1 | XJ-CEB1 | Sam | Current | ||||
7 | XH-CEA1 | XH-CEA1 | Alf | Resigned | ||||
8 | XH-CEK1 | XH-CEA1 | Sarah | Current | ||||
9 | XE-CEA1 | XC-CEK1 | Naomi | Current | ||||
10 | XC-CEK1 | XK-CEB1 | Matt | Resigned | ||||
11 | XK-CEB1 | XK-CEB1 | Lucas | Current | ||||
12 | XH-CED1 | XH-CED1 | Danielle | Resigned | ||||
13 | XJ-CED1 | XH-CED1 | Jeremy | Current | ||||
14 | XH-CEJ1 | XH-CEJ1 | John | Current | ||||
15 | XH-CEB1 | XH-CEB1 | Andrea | Current | ||||
Sheet1 |