+ Reply to Thread
Results 1 to 4 of 4

How do I add a duration time value and a clock time value?

  1. #1
    sueb262
    Guest

    How do I add a duration time value and a clock time value?

    I have a column containing cells formatted with the "1:30 PM" option (clock
    time), and a column containing cells formatted with the "37:30:55" option
    (duration time). I know I can jump through several hoops to extract and add
    the various segments to get a new clock time, but I can't believe it's that
    difficult. This MUST be a relatively common need, and surely I'm making it
    more convoluted than it is, but I can't find the elegant way.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    If A1 = "1:30 PM" and B1 = "37:30:55" then sum both in C1

    Change the format of C1 in custom to

    [h]:mm:ss

    VBA Noob

  3. #3
    sueb262
    Guest

    Re: How do I add a duration time value and a clock time value?

    Thanks! I guess I was missing that last bit about the formatting!

    "VBA Noob" wrote:

    >
    > Hi,
    >
    > If A1 = "1:30 PM" and B1 = "37:30:55" then sum both in C1
    >
    > Change the format of C1 in custom to
    >
    > [h]:mm:ss
    >
    > VBA Noob
    >
    >
    > --
    > VBA Noob
    > ------------------------------------------------------------------------
    > VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
    > View this thread: http://www.excelforum.com/showthread...hreadid=561817
    >
    >


  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

+ 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