+ Reply to Thread
Results 1 to 3 of 3

# of times midnight is crossed between date and time ranges

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    Findlay, OH
    MS-Off Ver
    Excel 2007
    Posts
    33

    # of times midnight is crossed between date and time ranges

    I need to know the # of time midnight is cross. I have an admit date and time and a discharge date and time.

    Thanks in advance for the help!
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: # of times midnight is crossed between date and time ranges

    In cell G2, enter:

    Please Login or Register  to view this content.
    Copy this formula down.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: # of times midnight is crossed between date and time ranges

    =sumproduct((b2:b8000)-(a2:b8000))
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

+ 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. [SOLVED] Adding date when times pass midnight
    By dvs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2013, 08:00 AM
  2. Replies: 3
    Last Post: 07-26-2012, 10:50 AM
  3. H:MM of intersecting times between two time ranges
    By capsaicinburn in forum Excel General
    Replies: 13
    Last Post: 12-18-2011, 09:44 PM
  4. Replies: 4
    Last Post: 11-28-2010, 08:18 PM
  5. incorrect date output when time and date strikes 12 midnight
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2009, 10:04 AM

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