+ Reply to Thread
Results 1 to 3 of 3

how to manipulate dates/times

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Post how to manipulate dates/times

    Hello,

    I am trying (in vain I must admit) to calculate the net duration between two date/time cells

    I have two working cells,
    the first is the raw difference between two original date/time cells and shows me 6/01/1900 20:36 which equates to 6 days, 20 hours and 36 seconds

    the second cell in the number of workdays (using the networkdays.intl function) between the two original dates which in this case is 4 days

    I can see that I need an answer that is = 96 ( 4 * 24) plus the 20:36 from the first working cell or 116.36 hours

    All the bits I need I can see but not manipulate

    any help appreciated

    Jmac1947

  2. #2
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: how to manipulate dates/times

    Hi JMac1947,

    Are you just trying to calculate the total hours between the two dates? You can simply achieve that by subtracting the two dates and then multiplying them by 24. For instance, if

    A1 = 1/16/2014 21:00
    B1 = 1/23/2014 12:01
    C1 = (B1 - A1)*24
    would give you C1 = 159.0265 which is the total difference between the two dates including the hours.
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: how to manipulate dates/times

    Hi codeslizer,
    thanks for the reply. The tricky bit here is the need to knock out any sundays and public holidays from the result.

    workdays.intl is a good start (once you understand how it seems to work) but I have some formatting issues with how to actually use the results of the Minute function when the result is less than 10, I can tweak the display but not use it in a formula like a concatenate

    jmac

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If a search term can be found 1 time, 2 times 3 times 4 times 5 times
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 09:57 PM
  2. multiple string dates in cell, to array, and manipulate single elements
    By willara23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 07:48 PM
  3. [SOLVED] Adding dates and times to dates and times
    By JohnDowds in forum Excel General
    Replies: 2
    Last Post: 06-10-2012, 12:22 AM
  4. Comparing dates/times 'within' set dates/times
    By JimFiggs in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-05-2010, 05:57 PM
  5. [SOLVED] Count times between 2 times and 2 dates
    By Jeremy Ellison in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2005, 09:35 PM

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