+ Reply to Thread
Results 1 to 2 of 2

subtracting hours and minutes

  1. #1
    Dave
    Guest

    subtracting hours and minutes

    Hi all,
    I have a value in A1 of 300:42 which represents 300 hrs and 42 mins.
    B1 contains 50.10 which also represents 50 hrs and 10 mins even though the
    separator is a decimal point and not a colon.
    What is the best way subtract B1 from A1 to return a value of 250:32?

    Thanks in advance
    Dave

  2. #2
    Peo Sjoblom
    Guest

    Re: subtracting hours and minutes

    One way

    =A1-(INT(A2)/24+MOD(A2,1)/14.4)

    format result as [hh]:mm:ss

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Dave" <[email protected]> wrote in message
    news:[email protected]...
    > Hi all,
    > I have a value in A1 of 300:42 which represents 300 hrs and 42 mins.
    > B1 contains 50.10 which also represents 50 hrs and 10 mins even though the
    > separator is a decimal point and not a colon.
    > What is the best way subtract B1 from A1 to return a value of 250:32?
    >
    > Thanks in advance
    > Dave



+ 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