I have a task that is asked of my team every year that is very time-consuming. We get a listing of all employees that is missing key information that we manually update each year. I am hoping that you can help us to automate this process. We have a new list as the "Working" tab in an Excel file and last year's list as the "Old" tab in the same file (attached). I am hoping to have a formula or script that can search each Employee_Num from the "Working" tab for information on the "Old" tab, and if it's found, populate columns C, D, and E with any data found. Additionally, if the record is not found in "Old", mark column A on the "Working" sheet with an X so we can examine and confirm its a new hire. I have mocked this up in the "Result" tab.
The lookup value is the Employee_Num field. The first column is an automatically generated iterative counter and not important. If values exist in the "Working" tab they should be respected and kept as they are. Empty values are common and inconsistent.
Here is the "Working" Tab:
Here is the "Old" tab:
Here is a mocked-up "Result" after the run:
The lookup value is the Employee_Num field. The first column is an automatically generated iterative counter and not important. If values exist in the "Working" tab they should be respected and kept as they are. Empty values are common and inconsistent.
Here is the "Working" Tab:
Employee-Update.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | New | Hire_Date | Type | Term_Date | Employee_Num | LastName | FirstName | Initial | Depend | |||
2 | 1 | 001234567 | La Rosa | Le Shawn | L | 0 | ||||||
3 | 2 | 003456789 | Wilson | Barbara | W | 4 | ||||||
4 | 3 | 055527240 | D'Angelo | Garett | S | 2 | ||||||
5 | 4 | 011846457 | McDough | Betty | 0 | |||||||
6 | 5 | 016234437 | Rinni | Joshua | M | 0 | ||||||
7 | 6 | 2/1/21 | PT | 7/14/23 | 001423289 | Olson | Enrique | 2 | ||||
8 | 7 | 001293213 | Erickson | Kyle | 0 | |||||||
Working |
Here is the "Old" tab:
Employee-Update.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Hire_Date | Type | Term_Date | Employee_Num | LastName | FirstName | Initial | Depend | |||
2 | 1 | 6/14/12 | FT | 001234567 | La Rosa | Le Shawn | L | 0 | |||
3 | 2 | 2/24/92 | FT | 003456789 | Wilson | Barbara | W | 4 | |||
4 | 3 | 9/15/23 | FT | 055527240 | D'Angelo | Garett | S | 2 | |||
5 | 4 | FT | 011846457 | McDough | Betty | 0 | |||||
6 | 5 | 3/13/21 | FT | 016234437 | Rinni | Joshua | M | 0 | |||
7 | 6 | 2/1/21 | PT | 7/14/23 | 001423289 | Olson | Enrique | 2 | |||
Old |
Here is a mocked-up "Result" after the run:
Employee-Update.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | New | Hire_Date | Type | Term_Date | Employee_Num | LastName | FirstName | Initial | Depend | |||
2 | 1 | 6/14/12 | FT | 001234567 | La Rosa | Le Shawn | L | 0 | ||||
3 | 2 | 2/24/92 | FT | 003456789 | Wilson | Barbara | W | 4 | ||||
4 | 3 | 9/15/23 | FT | 055527240 | D'Angelo | Garett | S | 2 | ||||
5 | 4 | FT | 011846457 | McDough | Betty | 0 | ||||||
6 | 5 | 3/13/21 | FT | 016234437 | Rinni | Joshua | M | 0 | ||||
7 | 6 | 2/1/21 | PT | 7/14/23 | 001423289 | Olson | Enrique | 2 | ||||
8 | 7 | X | 001293213 | Erickson | Kyle | 0 | ||||||
Result |