shekhar_pc
Board Regular
- Joined
- Jan 29, 2006
- Messages
- 185
try.xls | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Employee | Emp ID | 2-Dec | 3-Dec | 4-Dec | 5-Dec | 6-Dec | 7-Dec | 8-Dec | 9-Dec | ||
2 | A | 1234 | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | |||||
3 | B | 1235 | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | |||||
4 | C | 1236 | 02:30 AM - 11:30 AM | Casual Leave | 02:30 AM - 11:30 AM | 02:30 AM - 11:30 AM | 02:30 AM - 11:30 AM | |||||
5 | D | 1237 | 05:30 AM - 03:00 PM | 05:30 AM - 03:00 PM | 05:30 AM - 03:00 PM | 05:30 AM - 03:00 PM | 05:30 AM - 03:00 PM | |||||
6 | E | 1238 | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | 11:30 PM - 08:30 AM | |||||
7 | F | 1239 | 05:30 AM - 03:00 PM | Sick Leave | 05:30 AM - 03:00 PM | 05:30 AM - 03:00 PM | 05:30 AM - 03:00 PM | |||||
8 | G | 1240 | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | 09:00 PM - 06:00 AM | |||||
9 | H | 1241 | 02:30 AM - 11:30 AM | 02:30 AM - 11:30 AM | 02:30 AM - 11:30 AM | 02:30 AM - 11:30 AM | 02:30 AM - 11:30 AM | |||||
Sheet1 |
Hi!
I have posted this question earlier but did not get any help. I have tried a lot but I am unable to achieve what I need.
The table posted above is the schedule for my employee. I need an input box which asks for a date. When the user supplies date, it should look for people who are scheduled for that particular date and who are on leave and put the result in the next worksheet at the last occupied row.
For instance, if I supply the date as 2nd Dec then the next worksheet should be filled with @ row # 2 (Row1 has headings)
Employee Emp ID Schedule
A 1234 09:00 PM - 06:00 AM
B 1235 11:30 PM - 08:30 AM
C 1236 02:30 AM - 11:30 AM
E 1238 11:30 PM - 08:30 AM
G 1240 09:00 PM - 06:00 AM
Then if I select 3rd Dec, the next worksheet should be filled with the following data starting fom row number 7 (just below the above data)
A 1234 09:00 PM - 06:00 AM
B 1235 11:30 PM - 08:30 AM
D 1237 05:30 AM - 03:00 PM
G 1240 09:00 PM - 06:00 AM