+ Reply to Thread
Results 1 to 3 of 3

How to Calculate Time

  1. #1
    henryyhw
    Guest

    How to Calculate Time


    Dear All,
    I have date field in Column A (e.g. 02/06/2005) and a time field in
    Column B (e.g. 05:15), how can I deduct 8 hours from this 2 fields
    (e.g. the results show 01/06/2005 21:15)??

    Thanks a lot


    --
    henryyhw

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Format cell C1 as Custom: dd/mm/yyyy hh:mm and enter this formula:

    =(A1+B1)-0.333

    returns 01/06/2005 21:15

    note that 8 hours is 0.333 of one day

    Does this work for you?

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Bob Phillips
    Guest

    Re: How to Calculate Time

    =A1+B1-time(8,0,0) and format as date/time.

    --
    HTH

    Bob Phillips

    "henryyhw" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Dear All,
    > I have date field in Column A (e.g. 02/06/2005) and a time field in
    > Column B (e.g. 05:15), how can I deduct 8 hours from this 2 fields
    > (e.g. the results show 01/06/2005 21:15)??
    >
    > Thanks a lot
    >
    >
    > --
    > henryyhw




+ 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