ahmedanis7
New Member
- Joined
- Sep 21, 2014
- Messages
- 3
Dear Experts,
This is my first post and will be obliged for the help.
I have data in two sheets.
The first sheet "Day" contains following columns - Emp Number, Date.
The second sheet "Absence" has following columns - Emp Number , Start Date, End Date, Leave type
I need a formula or macro which will check if the Date as per the sheet "Day" falls between the start date and end date in sheet "Absence"and if yes, the type of leave is updated in Sheet "Day" .
Note- there could be multiple entries for same employee in the absence sheet.
Sheet "Day"
EMP NO DATE RESULT REQUIRED
123 15/09/2014 SICK LEAVE
123 17/09/2014 --
333 05/09/2014 --
333 10/09/2014 Annual Leave
333 12/09/2014 Annual Leave
333 16/09/2014 ---
333 18/09/2014 Sick Leave
333 19/09/2014 Sick Leave
Sheet "Absence"
Emp No Start Dtae End Date Leave
123 15/09/2014 15/09/2014 Sick Leave
333 10/09/2014 14/09/2014 Annual Leave
333 18/09/2014 20/09/2014 Sick Leave
Thanks.
This is my first post and will be obliged for the help.
I have data in two sheets.
The first sheet "Day" contains following columns - Emp Number, Date.
The second sheet "Absence" has following columns - Emp Number , Start Date, End Date, Leave type
I need a formula or macro which will check if the Date as per the sheet "Day" falls between the start date and end date in sheet "Absence"and if yes, the type of leave is updated in Sheet "Day" .
Note- there could be multiple entries for same employee in the absence sheet.
Sheet "Day"
EMP NO DATE RESULT REQUIRED
123 15/09/2014 SICK LEAVE
123 17/09/2014 --
333 05/09/2014 --
333 10/09/2014 Annual Leave
333 12/09/2014 Annual Leave
333 16/09/2014 ---
333 18/09/2014 Sick Leave
333 19/09/2014 Sick Leave
Sheet "Absence"
Emp No Start Dtae End Date Leave
123 15/09/2014 15/09/2014 Sick Leave
333 10/09/2014 14/09/2014 Annual Leave
333 18/09/2014 20/09/2014 Sick Leave
Thanks.