Jtucker10278
Board Regular
- Joined
- May 14, 2017
- Messages
- 65
- Office Version
- 365
- Platform
- Windows
I have found a fair amount of information regarding how to deal with time values independent of the date, but not much information when the date it attached.
I am trying to write a formula that is
=If(A1>4:00pm, 4:00pm, A1)
but the twist is that A1 has the value of 6/6/2024 6:50:00 PM
and value if true needs to hold the date and just adjust the time to 4:00 pm
I don't care if I have to break this out over several columns to get it right, I have been trying to pull apart the date and time (and then time values (h,m,s) and then do my if statement then build it back to the time date but that isnt working either.
not sure if it matters but the Date and Time value is stored in a cell with a custom number format of hh:mm:ss AM/PM
any help is appreciated.
I am trying to write a formula that is
=If(A1>4:00pm, 4:00pm, A1)
but the twist is that A1 has the value of 6/6/2024 6:50:00 PM
and value if true needs to hold the date and just adjust the time to 4:00 pm
I don't care if I have to break this out over several columns to get it right, I have been trying to pull apart the date and time (and then time values (h,m,s) and then do my if statement then build it back to the time date but that isnt working either.
not sure if it matters but the Date and Time value is stored in a cell with a custom number format of hh:mm:ss AM/PM
any help is appreciated.