RattlingCarp3048
Board Regular
- Joined
- Jan 12, 2022
- Messages
- 202
- Office Version
- 365
- Platform
- Windows
There is probably an easy solution i am overlooking but if someone could get me in the right direction that would be great.
I have a data set that is extracted from a program. The date and time is in one field formatted to military time. I am trying to write a formula that states if the time is <= 1300, then put original date+1, if not put the original date. Excel no matter what combination or format i write the formula it sill +1 to everything regardless of the time.
current formula =IF(I2<="3 PM",I2+1,I2)
previously tired =IF(I2<="1300",I2+1,I2)
I have a data set that is extracted from a program. The date and time is in one field formatted to military time. I am trying to write a formula that states if the time is <= 1300, then put original date+1, if not put the original date. Excel no matter what combination or format i write the formula it sill +1 to everything regardless of the time.
current formula =IF(I2<="3 PM",I2+1,I2)
previously tired =IF(I2<="1300",I2+1,I2)
Original: 4/4/23 16:16 | what it should be: 4/5/2023 | what formula returned: 4/5/2023 | this was after 3pm on 4/4 so formula should return next day's date of 4/5 |
4/5/23 5:56 | 4/5/2023 | 4/6/2023 | this is before 3pm on 4/5 so formula should return original date of 4/5 |