+ Reply to Thread
Results 1 to 6 of 6

time value after midnight

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    3

    time value after midnight

    Hello all,
    I am counting the number of employees per time period in a schedule that has morning shifts, mid shifts and overnight shifts. The formula works until after the 11:30pm-12:00am shift. From 12am-12:30am, 12:30am-1am and so on, it shows 0's.
    The formula is "=SUMPRODUCT(($B$2:$B$27<=V42)*(MOD($C$2:$C$27-$B$2:$B$27,1)>MOD(($C$2:$C$27-TIME(,,1))-V42,1)))"
    where B2:B27 is the start time, C2:C27 is the end time and V42 is the beginning of the time period(12am,12:30am,1am,etc...) that I would like to know the number of employees.
    Thank you all for your help!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: time value after midnight

    Not real clear.

    Can you post a SMALL** sample file that shows your data layout and include the results you expect.

    ** SMALL = about 20 rows worth of data will do.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: time value after midnight

    pls talk clearer

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cool Re: time value after midnight

    Figured it out! Thanks for replying so quickly.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: time value after midnight

    Good deal. Thanks for the feedback!

  6. #6
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: time value after midnight

    pls mark as solved

+ 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