+ Reply to Thread
Results 1 to 4 of 4

get earliest Date-time and Latest Date-time based on 2 criterias (first & last name)

  1. #1
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    get earliest Date-time and Latest Date-time based on 2 criterias (first & last name)

    Sample Data1.jpgSample Data2.jpg

    i have 2 screenshots of a dummy data

    what i need is to get the Earliest Date-time based on the person's first and last name. this first formula will go to column D.
    and another formula that would return the persons Last incident (date-time)

    notice that there are multiple incidents created by the same person with unique date-time values. i'm guessing the formula will likely be using the Max function and Vlookup but i couldnt piece it together that returns the right values i need..

    so far this is what i've come up: (i)
    =MAX(VLOOKUP(and(C2 & "*", B2 & "*",H:J,3,0))
    =MIN(VLOOKUP(and(C2 & "*", B2 & "*",H:J,3,0))
    but it sadly doesn't work... (they both return the same values) (i modified a bit the colums - added a copy of column G to Column J)
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: get earliest Date-time and Latest Date-time based on 2 criterias (first & last name)

    you posted an screenshot, in which forummembers can't work.

    So they have to rebuilt you sheet thereself.

    Anwer:
    Use a pivot table. for that kind of work.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: get earliest Date-time and Latest Date-time based on 2 criterias (first & last name)

    You could use Max(ifs... Min(Ifs.. instead of vlookup, check out for attachment,


    Does that help ?
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: get earliest Date-time and Latest Date-time based on 2 criterias (first & last name)

    Check the Non Array solution...
    though Boopathi's solution are best one..
    For Min
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For Max
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Wanna learn how these formula work.. Click the link the below..(Excel-Buzz.blogspot.in)
    Check the attachment..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

+ 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. Replies: 5
    Last Post: 03-03-2014, 01:53 AM
  2. Looking Up Earliest and Latest Time Values
    By warhead92100 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-25-2013, 06:07 AM
  3. How to Get Earliest Time In and Latest Time Out
    By domzki225 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-20-2013, 04:55 PM
  4. Earliest and Latest Time where cell contains certain text
    By asalbus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2013, 01:45 AM
  5. Finding earliest date/time
    By Atlanticja in forum Excel General
    Replies: 3
    Last Post: 10-10-2012, 06:37 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