+ Reply to Thread
Results 1 to 2 of 2

Time Subtraction with condition

  1. #1
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Time Subtraction with condition

    Hi!


    I am looking for a formula to subtract time and if it is less than the required 9 hours then it should give value otherwise displays zero.

    For examples 18:54 - 10:04 = 8:50min so I need value 00:10 (i.e 10 min short of 9 hours)

    For example 18:00 - 9:59 = 0 (i.e Value 0 as it is more than 9 hours)


    Thanks in advance

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

    Re: Time Subtraction with condition

    How about this:

    ="09:00" - MIN(C2-D2, "09:00")

+ 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