+ Reply to Thread
Results 1 to 3 of 3

Working with Time (Greater Than, Subtraction, ADDing)

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Glendale, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    9

    Working with Time (Greater Than, Subtraction, ADDing)

    How do I write a formula to tell if one time of the day is further along than the other:

    I am not using military time, all my data is in the 12hr format.

    Example: 1:00 PM and 11:00 AM, How do I write a formula to tell if 1:00 Pm is 2hours greater than 11:00AM

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Working with Time (Greater Than, Subtraction, ADDing)

    If A1=1:00PM, A2=11:00AM both are formated as time
    =A1-A2=2
    Quang PT

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Working with Time (Greater Than, Subtraction, ADDing)

    Perhaps
    //Ola

    =IF((A1-B1)>2,"Yes","No")
    A1: 01:00 PM
    B1: 11:00 AM
    Mark the problem as Solved under the Yellow bar up Top right, under Thread Tools, when you received a solution.
    It saves time, to skip already solved threads.

+ 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