+ Reply to Thread
Results 1 to 10 of 10

Formula to find first entry for every person for each day

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Formula to find first entry for every person for each day

    Dear all,

    Is there a formula that I can retrieve the first door log time for every person for every day?

    Will the Index and Match work?

    Sample data is below

    Column A Column B Column C
    Person A 18 May 8.30am
    Person A 18 May 12.30pm
    Person A 19 May 9.30am
    Person A 19 May 14.40pm
    Person A 19 May 17:30pm
    Person A 20 May 8.45am
    Person A 20 May 17.30pm
    Person B 18 May 8:00am
    Person B 18 May 10.00am
    Person B 18 May 11.00am
    Person B 18 May 13.30pm
    Person B 18 May 17.40pm
    Person B 19 May 8.30am
    Person B 19 May 14.40pm
    Person B 19 May 17:30pm
    Person C 18 May 9.10am
    Person C 18 May 17.45pm
    Person C 20 May 8.45am
    Person C 20 May 11.30am
    Person C 20 May 12.30pm
    Person C 20 May 14.30pm
    Person C 20 May 17.30pm

    So the results will be:

    18 May Person A 8.30am
    18 May Person B 8.00am
    18 May Person C 9.10am
    19 May Person A 9.30am
    19 May Person B 14.40pm
    19 May Person C No Record
    20 May Person A 8.45am
    20 May Person B No Record
    20 May Person C 8.45am


    Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to find first entry for every person for each day

    We can't see what values are in which cell. Please attach an Excel workbook!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to find first entry for every person for each day

    Hi,

    Are you able to change your data so that you capture a proper time or time number rather than text like "8.45am" i.e. 0.364583333333333 ?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-02-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Formula to find first entry for every person for each day

    Dear Glenn,

    This is the excel workbook which I entered the sample data.

    Thanks.

    Daryl
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-02-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Formula to find first entry for every person for each day

    Dear Richard,

    I don't think I can convert. The original time from the door access software after exported to excel actually appears as hh:mm:ss format e.g. 09:00:11

    For the sample data, I am just giving an example. Only wish to extract the first log for each day for every person.

    Thanks!

    Daryl

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to find first entry for every person for each day

    It doesn't seem to mattter too much, as the times are in chronological order, so an INDEX MATCH, checking 2 criteria, will stop at the first match.
    Attached Files Attached Files

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Formula to find first entry for every person for each day

    You could set up a simple table with names in column E (starting from E2) and dates in row 1 (starting from F1), and this formula in F2:

    =IFERROR(INDEX($C$2:$C$23,MATCH(1,INDEX(($A$2:$A$23=F$1)*($B$2:$B$23=$E2),0),0)),"")

    Copy across and down, as the attached file shows.

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to find first entry for every person for each day

    Quote Originally Posted by darylexcel View Post
    Dear Richard,

    I don't think I can convert. The original time from the door access software after exported to excel actually appears as hh:mm:ss format e.g. 09:00:11

    For the sample data, I am just giving an example. Only wish to extract the first log for each day for every person.

    Thanks!

    Daryl
    Hello Daryl,

    Please note that when you give examples you should show examples that accurately reflect the ACTUAL data you are working with, otherwise we all waste our time considering factors that aren't true or relevant. Please note that there is a big difference as far as Excel is concerned between '8.30am' and .354167 which is the time number for 08:30

  9. #9
    Registered User
    Join Date
    06-02-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Formula to find first entry for every person for each day

    Thanks Pete and Glen for the solving formulas.

    Yes Richard, will take note of this.

    Grateful to all of you...

    Daryl

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to find first entry for every person for each day

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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] match formula to find total score of a person appearing more than once in list
    By rohit43 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2013, 03:53 AM
  2. [SOLVED] formula to find name of person who scored highest score
    By rohit43 in forum Excel General
    Replies: 8
    Last Post: 11-21-2012, 11:58 AM
  3. Replies: 1
    Last Post: 11-19-2012, 03:58 PM
  4. Formula to find last entry in an array?
    By JungleJme in forum Excel General
    Replies: 3
    Last Post: 04-16-2012, 07:51 AM
  5. [SOLVED] I want a formula to find age of person
    By Aaron in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2005, 04:50 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