So, I have two spreadsheets. One has a list of data with a time and date stamp on it. The other has the crew shift schedule on it.
Spreadsheet 1
A B C D
1/1/11 8:00 PM 42 637 11222
1/1/11 11:00 PM 66 499 10978
1/3/11 5:00 AM 27 529 10223
1/3/11 7:00 AM 56 588 11017
These time stamps are from any hour of the day.
Spreadsheet 2
A B C D E F
TIME SHIFT STARTS CREW1 CREW2 CREW3 CREW4 CREW5
1/1/11 06:00 AM D O O N S
1/2/11 06:00 AM D O O N S
1/3/11 06:00 AM O N D S O
(D = Day, N= Night, O = Off, S= Staff Day)
I want to go through the timestamp data and figure out which crew was working. So if I look at line 1 and it is 1/1/11 8:00 PM, the macro or formula can go look at spreadsheet 2, find out that that occurs during 1/1/11 6:00 AM shifts, and that it is Crew D. Once it finds the row with the right crew, I'll copy the 5 cells with the crew info over to spreadsheet one, but I need help with getting it to find the right row. Is this possible?
Any help is appreciated.
Spreadsheet 1
A B C D
1/1/11 8:00 PM 42 637 11222
1/1/11 11:00 PM 66 499 10978
1/3/11 5:00 AM 27 529 10223
1/3/11 7:00 AM 56 588 11017
These time stamps are from any hour of the day.
Spreadsheet 2
A B C D E F
TIME SHIFT STARTS CREW1 CREW2 CREW3 CREW4 CREW5
1/1/11 06:00 AM D O O N S
1/2/11 06:00 AM D O O N S
1/3/11 06:00 AM O N D S O
(D = Day, N= Night, O = Off, S= Staff Day)
I want to go through the timestamp data and figure out which crew was working. So if I look at line 1 and it is 1/1/11 8:00 PM, the macro or formula can go look at spreadsheet 2, find out that that occurs during 1/1/11 6:00 AM shifts, and that it is Crew D. Once it finds the row with the right crew, I'll copy the 5 cells with the crew info over to spreadsheet one, but I need help with getting it to find the right row. Is this possible?
Any help is appreciated.