+ Reply to Thread
Results 1 to 6 of 6

Function to pick all matches associated with certain entry (Modify Vlookup or alternative)

  1. #1
    Forum Contributor
    Join Date
    10-06-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    208

    Function to pick all matches associated with certain entry (Modify Vlookup or alternative)

    Dear All
    In the attached sample file, I need a function to insert in R2 and copy across to U2 and down, to pick up all the values )up to four) associated with the ISSN under the Quartile heading.

    I was not able to use Vlookup since it picks the first value it encounters.

    All the best Taisir
    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,946

    Re: Function to pick all matches associated with certain entry (Modify Vlookup or alternat

    See if this ARRAY formula will work for you...
    Q2=IFERROR(INDEX($F$2:$F$36,SMALL(IF($D$2:$D$36=$P2,ROW($D$2:$D$36)-2),COLUMNS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. 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 Contributor
    Join Date
    10-06-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: Function to pick all matches associated with certain entry (Modify Vlookup or alternat

    Dear FDibbin,
    For some reason, the formula dis not produce the desired/intended outcome as indicated in the attached.
    What Am I doing wrong. take care
    Attached Files Attached Files

  4. #4
    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,946

    Re: Function to pick all matches associated with certain entry (Modify Vlookup or alternat

    My apologies, try this isntead (slight modification), still CSE...
    =IFERROR(INDEX($F:$F,SMALL(IF($D$2:$D$36=$P2,ROW($D$2:$D$36)),COLUMNS($A$1:A1))),"")

  5. #5
    Forum Contributor
    Join Date
    10-06-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: Function to pick all matches associated with certain entry (Modify Vlookup or alternat

    Many thanks Fdibbins for the magical formula. Taisir

  6. #6
    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,946

    Re: Function to pick all matches associated with certain entry (Modify Vlookup or alternat

    Happy to help, thanks for the feedback

+ 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. [SOLVED] Better alternative than =MID, pick ut specific number in product name
    By Here2learn in forum Excel General
    Replies: 3
    Last Post: 07-13-2015, 11:33 AM
  2. Validate that entry in one cell matches an entry in another range of cells
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2014, 03:57 PM
  3. [SOLVED] Vlookup Base on Criteria but pick up the entry based on the latest date
    By kelkelkel08 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2014, 05:37 AM
  4. Replies: 2
    Last Post: 10-13-2011, 04:41 PM
  5. Any alternative for VLOOKUP function
    By Tanza in forum Excel General
    Replies: 4
    Last Post: 04-24-2011, 02:06 PM
  6. Replies: 6
    Last Post: 04-21-2010, 02:53 AM
  7. [SOLVED] Can I pick more than 1 entry in the validation function?
    By Dora Genco in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-02-2006, 01:25 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