+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP, wanting 2nd, 3rd occurrence, etc.

  1. #1
    Registered User
    Join Date
    07-03-2012
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2010
    Posts
    5

    VLOOKUP, wanting 2nd, 3rd occurrence, etc.

    Hello, if anyone can help me with this I would much appreciate it.

    In Cell A9:25, I want the date (Column E on .25! Sheet) of any name match (Column C on .25! Sheet). There will be eventually numerous entries for each name, so I would like it to return the 1st, 2nd, 3rd, 4th, etc. date. I know how to get the first one using VLOOKUP, but I am stuck after that. Attached is the spreadsheet.

    Again thanks to anyone who can help me.

    - Nick J.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: VLOOKUP, wanting 2nd, 3rd occurrence, etc.

    Here's one way. It uses two helper columns (A on the "Occurrence Sheet" and D on the ".25" one).

    On the .25 sheet it simply counts the number of times the name appears in the current row and any rows above it and adds that number to the beginning of the name.

    On the Occurrence Sheet the numbers in column A are added to the name in cell C3, but it's done within the formula so you never see it.

    You can hide the two helper columns and be none the wiser.

    Let me know if this is of use or even what you meant....

    S.
    Attached Files Attached Files
    If I've been of help, please hit the star

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: VLOOKUP, wanting 2nd, 3rd occurrence, etc.

    nj8988,

    In sheet 'Occurrence Sheet' cell A9 and copied down:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-03-2012
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: VLOOKUP, wanting 2nd, 3rd occurrence, etc.

    Thank you very much. This worked! I have one more issue to work around. On the sheet "Rollover!", I am looking to find the MAX Value (date) in column E in the .25! if column A on Sheet Rollover! matches Column C on Sheet .25!

    (On the sheet attached).
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: VLOOKUP, wanting 2nd, 3rd occurrence, etc.

    In cell B2 on the Rollover worksheet, enter the below formula. It is an "array formula" so you have to enter it using Ctrl+Shft+Enter rather than just Enter.

    =MAX(IF('.25'!C$1:C$41=A2,'.25'!E$1:E$41))

    Then copy down and format the cells to a date style.

    You will get only 4 actual dates in your example because there are only 4 individual names on the .25 worksheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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