Would request you to help me providing excel VBA code which will replace weekly offs and holidays into absent in Sheet 1 if employee's attendance status is absent before and after weekly offs or holidays
In Sheet 1 we have attendance record Example...
Employee ID, Name, 1-Jan 2-Jan 3-Jan 4-Jan 5-Jan 6-Jan 7-Jan 8-Jan
M012345 ABC Present, Present, Absent, Weekly Off, Absent, Holiday, Absent, Present
In Sheet 2 following columns contains list of text used for Present, Absent or Weekly Off and Holidays.
Column A = List of text used for Present
Column B = List of text used for Absent
Column C = List of text used for Weekly Off and Holidays
In above example in Sheet 1, I am looking for a excel VBA CODE which will replace the Weekly Off and Holiday into the word "Absent" in Sheet 1 because employee's attendance status is absent before and after weekly off or holiday and this logic should get checked for all the rows with data
Thanks in advance
Bookmarks