Hi Everyone,
I am not an expert in Excel, and I have been trying to figure out how I can do this, but couldnt get to the right formula, I hope I can get the solution here.
The Case:
I have an Excel workbook which has multiple sheets of HR Information. We decided to stop dealing with the current Employee numbers and created a new Employee ID for each employee.
To do that, in the master sheet, I created a new column with new Employee IDs to replace the Older ones as the below example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]New Employee ID[/TD]
[TD]Old Employee ID[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[/TR]
[TR]
[TD]ST000002[/TD]
[TD]00511[/TD]
[/TR]
[TR]
[TD]ST000003[/TD]
[TD]00108[/TD]
[/TR]
[TR]
[TD]ST000004[/TD]
[TD]00073[/TD]
[/TR]
</tbody>[/TABLE]
Now, I would like to replace any Old Employee ID in the other sheets with the new corresponding Employee ID as given in the master table above,
For example, the current dependents Insurance sheet looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Old Employee Number[/TD]
[TD]Dependent type[/TD]
[TD]Insurance Class[/TD]
[/TR]
[TR]
[TD]00402[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]00402[/TD]
[TD]Son[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]00402[/TD]
[TD]Daughter[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]00511[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]00073[/TD]
[TD]Son[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
I want to add a new column with a formula that goes to the master sheet, searches for the Old employee number and returns its corresponding New Employee Id. So the Dependents Insurance sheet should look like this instead:
[TABLE="width: 500"]
<tbody>[TR]
[TD]New Employee ID[/TD]
[TD]Old Employee ID[/TD]
[TD]Dependent type[/TD]
[TD]Insurance Class[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[TD]Son[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[TD]Daughter[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]ST000002[/TD]
[TD]00511[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]ST000004[/TD]
[TD]00073[/TD]
[TD]Son[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
I hope I was able to clarify my request,
Thank you and appreciate your help
I am not an expert in Excel, and I have been trying to figure out how I can do this, but couldnt get to the right formula, I hope I can get the solution here.
The Case:
I have an Excel workbook which has multiple sheets of HR Information. We decided to stop dealing with the current Employee numbers and created a new Employee ID for each employee.
To do that, in the master sheet, I created a new column with new Employee IDs to replace the Older ones as the below example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]New Employee ID[/TD]
[TD]Old Employee ID[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[/TR]
[TR]
[TD]ST000002[/TD]
[TD]00511[/TD]
[/TR]
[TR]
[TD]ST000003[/TD]
[TD]00108[/TD]
[/TR]
[TR]
[TD]ST000004[/TD]
[TD]00073[/TD]
[/TR]
</tbody>[/TABLE]
Now, I would like to replace any Old Employee ID in the other sheets with the new corresponding Employee ID as given in the master table above,
For example, the current dependents Insurance sheet looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Old Employee Number[/TD]
[TD]Dependent type[/TD]
[TD]Insurance Class[/TD]
[/TR]
[TR]
[TD]00402[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]00402[/TD]
[TD]Son[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]00402[/TD]
[TD]Daughter[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]00511[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]00073[/TD]
[TD]Son[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
I want to add a new column with a formula that goes to the master sheet, searches for the Old employee number and returns its corresponding New Employee Id. So the Dependents Insurance sheet should look like this instead:
[TABLE="width: 500"]
<tbody>[TR]
[TD]New Employee ID[/TD]
[TD]Old Employee ID[/TD]
[TD]Dependent type[/TD]
[TD]Insurance Class[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[TD]Son[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]ST000001[/TD]
[TD]00402[/TD]
[TD]Daughter[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]ST000002[/TD]
[TD]00511[/TD]
[TD]Wife[/TD]
[TD]A+[/TD]
[/TR]
[TR]
[TD]ST000004[/TD]
[TD]00073[/TD]
[TD]Son[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
I hope I was able to clarify my request,
Thank you and appreciate your help