+ Reply to Thread
Results 1 to 4 of 4

Calculate hours difference excl weekends

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Dub
    MS-Off Ver
    Excel 2003
    Posts
    2

    Calculate hours difference excl weekends

    Hi, I hope someone can help with this
    I have 2 date fields
    A1 is: Nov 2 2012 12:57PM
    B1 is: Nov 6 2012 12:08PM

    How can I easiest calculate the numbers of total hours passed between these 2 fields

    thanks

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Calculate hours difference excl weekends

    =CONVERT(B1-A1;"day";"hr")

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculate hours difference excl weekends

    Hi DubX

    Try: =B1-A1 & Format cell as [h]:mm

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    Dub
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Calculate hours difference excl weekends

    Thanks, tried both and doesn't work.
    I think the problem is that the excel file I recieve has not these cells formatted as date just general so excel can't recognize what is actually in the cells.
    Even if I format the cells as date mmm/dd/yyyy hh:ss does not work for some reason

+ 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