+ Reply to Thread
Results 1 to 2 of 2

Match Start & Stop Times

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Match Start & Stop Times

    I have a worksheet table that has a one "1" in each cell during the hour where an employee is at work. I am trying to calculate each employees start and stop time, which are represented by the first "1" in each row and the last "1" in each row respectively. The sample file (attached) should be clear and includes the expected results (cells B5:C7).

    What formula would go in cells B5 and C5 (to then be dragged down)?

    Thanks,

    D
    Attached Files Attached Files
    Last edited by dreicer_Jarr; 09-09-2010 at 10:48 PM.
    ______________________________________
    "Vision without Execution is a Hallucination"
    Edison

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Match Start & Stop Times

    Try these formulas

    B5: =INDEX($D$4:$AA$4,MATCH(1,$D5:$AA5,0))
    C5: =INDEX($D$4:$AA$4,MATCH(1,$D5:$AA5,0)+SUM($D5:$AA5)-1)


    Both copied down/
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

+ 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