I need to subtract 5 hours from military times in SAP. I am having problems when subtracting from military times less then the 5 hours.
I need to subtract 5 hours from military times in SAP. I am having problems when subtracting from military times less then the 5 hours.
Last edited by Nunzio; 10-10-2011 at 07:38 PM.
What result would you expect? The "borrow" has to come from the date.
If A1 contains a date and time, then =A1-"5:00" returns the time five hours earlier, which may be on the prior date.
If A1 just contains a time, then =A1-"5:00" + (A1-5":00"<0) returns just the time.
Entia non sunt multiplicanda sine necessitate
if just times you could also try this
=MOD(A1-"5:00",1)
Audere est facere
See my post at MrE ...
Thanks daddylonglegs
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks