1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excell Date Math

Discussion in 'Business Applications' started by hillrp, Sep 5, 2004.

Thread Status:
Not open for further replies.
  1. hillrp

    hillrp Thread Starter

    Sep 5, 2004
    Is there a way to enter a simple formula or routine in Excell to subtract one date/time from another and get a result in hours:minutes? I have tried several formulas, and got one that works 99% of the time, except when the same number of minutes is in both dates. When that occurrs, the hour is one less. My formula is:

  2. maxflia10


    Feb 24, 2003

    B1-A1 and custom format the cell that houses the formula as [h]:mm
  3. Zack Barresse

    Zack Barresse

    Jul 25, 2004
    The only thing you'll need to watch for (using maxflia's solution - which is brilliantly simple :) ) is having A1 greater than B1. If this is possible you may want to look into a possible IF function integration ...

    =IF(A1>B1,"Out of Range",B1-A1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/270631

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice