+ Reply to Thread
Results 1 to 4 of 4

Subtract hours

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Subtract hours

    Hello All,
    I have a formula that adds hours based on my time zone (=H3+TIME(9,30,0)). H3 equals 00:00, the result is 09:30.
    It works pretty good, but, I was trying to find one that will subtract hours. If I were to put 00:00 in H3 and subtract 4 hours, the result should be 20:00.

    Any ideas?

    Thanx.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Subtract hours

    Try:

    =MOD(H3-"9:30:00",1)

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Subtract hours

    Try =mod(h3-"04:00",1)

  4. #4
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Re: Subtract hours

    Quote Originally Posted by Pepe Le Mokko View Post
    Try =mod(h3-"04:00",1)
    This works great, Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1