Hi all,
I have Time data in Column D and I am looking for an Excel formula that will label the time as Part of the Day.
The formula that I am using right now only gives the "Morning Output"
Formula that I am using - =IF(OR(D2>=TIMEVALUE("5:00 AM"),D2<TIMEVALUE("12:00 PM")),"Morning",IF(AND(D2>=TIMEVALUE("12:01 PM"),D2<TIMEVALUE("5:00 PM")),"Afternoon",IF(AND(D2>=TIMEVALUE("5:01 PM"),D2<=TIMEVALUE("11:59 PM")),"Evening"))). Can someone please help? Thank you.
Here is how the data looks:
Here is the Criteria:
I have Time data in Column D and I am looking for an Excel formula that will label the time as Part of the Day.
The formula that I am using right now only gives the "Morning Output"
Formula that I am using - =IF(OR(D2>=TIMEVALUE("5:00 AM"),D2<TIMEVALUE("12:00 PM")),"Morning",IF(AND(D2>=TIMEVALUE("12:01 PM"),D2<TIMEVALUE("5:00 PM")),"Afternoon",IF(AND(D2>=TIMEVALUE("5:01 PM"),D2<=TIMEVALUE("11:59 PM")),"Evening"))). Can someone please help? Thank you.
Here is how the data looks:
Time |
12:20 PM |
01:14 PM |
02:02 PM |
11:55 AM |
12:27 PM |
11:30 AM |
10:37 AM |
03:23 PM |
09:05 PM |
02:24 PM |
08:42 AM |
08:41 AM |
08:40 AM |
Here is the Criteria:
Criteria | |
Timings | Part of the Day |
5:00 AM - 12:00 PM | Morning |
12:01 PM - 5:00 PM | Afternoon |
5:00 PM - 11:59 PM | Evening |
12:00 AM - 4:59 AM | Early Morning |