+ Reply to Thread
Results 1 to 4 of 4

Finding Last instance in a list

  1. #1
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Finding Last instance in a list

    Hi,

    Just wondering if anyone knows how to find the last time something occurs in a list.

    please see the attached, there is a list of clients and a list of times

    What I want is a formula that gives you the first instance, I just used a vlookup which works fine and then I also want to find the last instance.

    so for example client 1 start would be 08/05/2013 12:59 and the last one would be 08/05/2013 19:30

    Thanks for you help with this
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Finding Last instance in a list

    try this array formula, copied down...
    =MAX(IF($A$2:$A$31=F2,$B$2:$B$31,0))

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Finding Last instance in a list

    non array alternative in H2 and copied down

    H2: =INDEX($B$2:$B$31,MATCH(F2,$A$2:$A$31))
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Finding Last instance in a list

    Thanks to you both spot on

+ 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