Hi
I am using the formula below to look for times in column BE and then use the lookup table to assign a number from 1-6 that equates to four hour blocks of time.
The formula works ok, apart from when 00:00:00 times are involved and then i get a #N/A error message,based on the lookup table below 00:00:00 times should return the number 1.
=VLOOKUP(BE4,$BN$3:$BO$26,2,FALSE)
BN-------BO
00:00:00 1
23:00:00 6
22:00:00 6
21:00:00 6
20:00:00 6
19:00:00 5
18:00:00 5
17:00:00 5
16:00:00 5
15:00:00 4
14:00:00 4
13:00:00 4
12:00:00 4
11:00:00 3
10:00:00 3
09:00:00 3
08:00:00 3
07:00:00 2
06:00:00 2
05:00:00 2
04:00:00 2
03:00:00 1
02:00:00 1
01:00:00 1
Thanks for the ideas
Ade
I am using the formula below to look for times in column BE and then use the lookup table to assign a number from 1-6 that equates to four hour blocks of time.
The formula works ok, apart from when 00:00:00 times are involved and then i get a #N/A error message,based on the lookup table below 00:00:00 times should return the number 1.
=VLOOKUP(BE4,$BN$3:$BO$26,2,FALSE)
BN-------BO
00:00:00 1
23:00:00 6
22:00:00 6
21:00:00 6
20:00:00 6
19:00:00 5
18:00:00 5
17:00:00 5
16:00:00 5
15:00:00 4
14:00:00 4
13:00:00 4
12:00:00 4
11:00:00 3
10:00:00 3
09:00:00 3
08:00:00 3
07:00:00 2
06:00:00 2
05:00:00 2
04:00:00 2
03:00:00 1
02:00:00 1
01:00:00 1
Thanks for the ideas
Ade