View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default Time/Date subtract 24 hours

try:

=$I$64-TIME(F14,G14,H14)-INT(F14/24)

"ET902" wrote:

I am trying to show the date and time when I subtract hours:min from a date
and time. Currently the formula I am using is $I$64-TIME(F14,G14,H14) where
I64 contains the date and time, F14 is hours, G14 is minutes and H14 is
seconds. Everything works great until I get to 24 hours. The date reverts
back to the original date, but the time is correct. How do I get the date to
calculate correctly?