Macro: copy the value of Sheet2 to Sheet1 based on EmployeeID

jekjhatz

New Member
Joined
May 10, 2018
Messages
1
Hi Guys,

Hope you can help me with this macro.
So I got thousand of employee and I have 2 sheets. Sheet1(for payroll) and Sheet2 (for reporting).
I need to transfer the Sheet2.Salary to Sheet1.Salary with the Sheet1.EmpID criteria.
95% of EmpID exist on the both Sheets. Some of the EMpID only exist to 1 Sheet only due to the employee take their vacation leave.

Thanks for your help in advance.

Sheet1Sheet2
Col ACol BCol DCol E
EmpIDSalaryEmpIDSalary
0001001220000
0002001629999
0012009229705
001600894295
0018053619999
001903704000
0001929
00024200
00185266
00191724

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top