Hi all,
I am trying to write a script to lookup and copy specific info from one worksheet to another if certain criteria matches.
Worksheet A is called "Absent" and has 8 columns with A1 called CM
CM ID Number Date Shift Position Reason Hours PTO Hours
Worksheet B is called "Data" and has 8 columns with A1 called Date
Date CM Position Status Termination Reason Absent Reason Hours PTO Hours
I would like to do the following:
1- have the script look for matching names and dates
2-If both match, copy from the "Absent" worksheet data in column F (reason), column G (Hours) and column H (PTO hours) to the matching rows in worksheet "Data"
3-each time the script is run to refresh any new information
Notes:
Worksheet Data currently has 29,459 rows of data
Worksheet Absent currently has 1,781 rows of data
Thank you all!
I am trying to write a script to lookup and copy specific info from one worksheet to another if certain criteria matches.
Worksheet A is called "Absent" and has 8 columns with A1 called CM
CM ID Number Date Shift Position Reason Hours PTO Hours
Worksheet B is called "Data" and has 8 columns with A1 called Date
Date CM Position Status Termination Reason Absent Reason Hours PTO Hours
I would like to do the following:
1- have the script look for matching names and dates
2-If both match, copy from the "Absent" worksheet data in column F (reason), column G (Hours) and column H (PTO hours) to the matching rows in worksheet "Data"
3-each time the script is run to refresh any new information
Notes:
Worksheet Data currently has 29,459 rows of data
Worksheet Absent currently has 1,781 rows of data
Thank you all!