+ Reply to Thread
Results 1 to 9 of 9

vlookup to find second,third and so on

  1. #1
    Forum Contributor
    Join Date
    08-22-2010
    Location
    mumbai
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    179

    vlookup to find second,third and so on

    Hi,
    Please find the attached file where in i have mentioned my requirement. Basically i want vlookup formula to find the second, third and so on result for the code no mentioned, This is sample file and the data is 4500+ rows long.

    Thanks
    Goodboy
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: vlookup to find second,third and so on

    Hi

    What year excel do you use now?

    2003 or 2007 or 2010 or 2013 or 2016?
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Forum Contributor
    Join Date
    08-22-2010
    Location
    mumbai
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    179

    Re: vlookup to find second,third and so on

    excel 2003

  4. #4
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: vlookup to find second,third and so on

    Are you sure cos sample file with this xlsx mean from 2007 to 2016?
    If you on 2003 it should be xls?

    It won't be easy to get the result with 2003 unless you upgrade excel to 2010 or onward to 2013 or 2016 to get the result you need?

  5. #5
    Forum Contributor
    Join Date
    08-22-2010
    Location
    mumbai
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    179

    Re: vlookup to find second,third and so on

    Sorry my mistake it is 2007 but u can provide the result I will check the same at my Office computer where it is excel 2010.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: vlookup to find second,third and so on

    Please Login or Register  to view this content.
    try this formula and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: vlookup to find second,third and so on

    If the data can be sorted (see attached) then try this

    =IFERROR(INDEX($B$2:$B$24,SMALL(IF($A$2:$A$24=$G2,ROW($A$2:$A$24)-ROW($A$2)+1,""),COUNTIF($G$2:G2,G2))),"")

    Enter with Ctrl+Shift+Enter

    Or

    =IFERROR(AGGREGATE(14,6,$B$2:$B$24/($A$2:$A$24=G2),COUNTIF($G$2:G2,G2)),"")
    Attached Files Attached Files

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: vlookup to find second,third and so on

    if you are using 2007+ version use below formula in h2 AND COPY TOWARDS DOWN
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: vlookup to find second,third and so on

    Sorry due my working hour!

    nflsales formula will work for 2007 onward? I would done similar to nflsales for 2007?

    For 2010 onward can use AGGREGATE? But won't work on 2007?

    H2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

+ 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: 3
    Last Post: 12-04-2014, 01:27 PM
  2. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  3. Replies: 1
    Last Post: 12-17-2012, 08:00 PM
  4. Using VLOOKUP to find multiple occurrences and find the Total quantity
    By susanpa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2009, 09:54 AM
  5. Find date. Vlookup, Find, Match ?????
    By richardeallen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2008, 06:48 AM
  6. Replies: 4
    Last Post: 10-18-2006, 12:25 PM
  7. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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