Bob McCusker
New Member
- Joined
- Oct 24, 2009
- Messages
- 42
Hello -
I have 3 cells:
A1 is the day
B1 is the time (military format)
C1 should show "A1" IF B1 is between 7:00 & 23:59, or show "A1-1" [a day before A1] if B1 is between 0:00 & 6:59.
I know how to use IF somewhat, but can't figure the logical test for a time range. The closest I have is:
=IF(AND(B1>=7:00,B1<=23:59),"A1","")
For the first part, which returns an error.
Also, this is sort of nitpicking, but does anyone know of a way that I can get a day cell to show "wed" instead of "Wed"? I pull the day cell from a date cell so I can't do it manually. This part isn't really that important its just more or less bothering me that I can't figure it out.
Any help would be greatly appreciated.
I have 3 cells:
A1 is the day
B1 is the time (military format)
C1 should show "A1" IF B1 is between 7:00 & 23:59, or show "A1-1" [a day before A1] if B1 is between 0:00 & 6:59.
I know how to use IF somewhat, but can't figure the logical test for a time range. The closest I have is:
=IF(AND(B1>=7:00,B1<=23:59),"A1","")
For the first part, which returns an error.
Also, this is sort of nitpicking, but does anyone know of a way that I can get a day cell to show "wed" instead of "Wed"? I pull the day cell from a date cell so I can't do it manually. This part isn't really that important its just more or less bothering me that I can't figure it out.
Any help would be greatly appreciated.