+ Reply to Thread
Results 1 to 5 of 5

finding the LAST time something appears in a list?

  1. #1
    Registered User
    Join Date
    04-17-2009
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2000
    Posts
    2

    Question finding the LAST time something appears in a list?

    The stupid paperclip is worthless, a search here turned up zilch, and I can't find any tutorials that are remotely related to my question, so here goes:


    I have a list of numbers in Column A (labeled "Number"), with a list of dates in Column B (labeled "Date & Time"). Every date in Column B is unique, but some numbers in Column A appear more than once.

    I am trying to create a simple formula that will automatically search for the LAST time a unique number appears in Column A (ignoring all previous instances of this number), and copy the date right next to it in Column B to another location on another worksheet.

    I tried fussing with several of the built-in functions, but I really don't know what I'm doing, and the built-in help documents are filled with too much mathematical/programmer technical terminology for me to understand. All the tutorials I've looked at seem to think I want to add some numbers together, but I don't want to do any calculations!

    I just want a simple, easy-to-understand solution. Can somebody please help? This is so frustrating...
    Last edited by hunter484; 05-06-2009 at 01:31 PM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: finding the LAST time something appears in a list?

    Assuming that D2 contains the number of interest, try...

    =LOOKUP(2,1/(A2:A100=D2),B2:B100)

    Adjust the ranges, accordingly.

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,014

    Re: finding the LAST time something appears in a list?

    If your column B is not sorted, you can try

    =MAX(IF(A2:A100=D2,B2:B100))

    commited with Ctrl+Shift+Enter

  4. #4
    Registered User
    Join Date
    04-17-2009
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2000
    Posts
    2

    Re: finding the LAST time something appears in a list?

    Column D is empty.
    I only have a list of numbers (some of which appear more than once) in Column A, and unique dates in Column B. Nothing else.

    Column B is sorted, from the oldest date to the most recent one.


    To illustrate:

    Column A ----- Column B
    12345678 ----- January 1
    38561034 ----- January 2
    73857302 ----- January 3
    12345678 ----- January 4

    If my table looked like that, I want a formula that returns "January 4" when I ask it to look for "12345678", and ignore older times that this number appears.

    I don't know if it will help, but since the list is sorted by Column B, maybe it could search from the bottom of the list and look up?

    But it would have to be capable of automatically updating (like, if I were to add "12345678" and "February 5", it should display the new date.

    That's what I'm trying to do.
    Last edited by hunter484; 04-23-2009 at 12:42 AM.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: finding the LAST time something appears in a list?

    Domenic has provided a solution, D2 is meant to represent the cell containing the ID of interest, eg: 12345678

    windknife's array will also work if the dates in Column B are true date values (ie numeric - Domenic's will work regardless), and again D2 is meant to hold the ID of interest - this formula must be committed with CTRL + SHIFT + ENTER

+ 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