+ Reply to Thread
Results 1 to 6 of 6

Vlookup with duplicates

  1. #1
    Registered User
    Join Date
    01-22-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Question Vlookup with duplicates

    I am trying to create a sheet where I can return values based on the search criteria but avoid it simply returning the same entry multiple times. I have a list of companies so when I search company A I need it to show me all the entries from company A and not just the highest company A on the list. Not sure if that is worded well but there is an excel attached which should make clear what I mean. I have manually inputted the desired output as a demonstration.

    I did try to utilize Vlookup as well as Index and Match, but I couldn't quite workout how to get it to return each unique entry as opposed to duplicating the first match.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,819

    Re: Vlookup with duplicates

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-22-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Re: Vlookup with duplicates

    Thank you,
    I have updated accordingly.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,819

    Re: Vlookup with duplicates

    As you have 365, look at the new FILTER function: https://exceljet.net/excel-functions...ilter-function

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Vlookup with duplicates

    1. Delete your expected answers.

    2. Use, in B3 copied across and down:

    =FILTER(Contractors!B$2:B$30,Contractors!$A$2:$A$30=Search!$A$2,"")

    If you don't delete the expected answers first, you will get a load of #SPILL errors.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,819

    Re: Vlookup with duplicates

    If you don't delete the expected answers first, you will get a load of #SPILL errors.
    Doh! That's why I couldn't get it to work ... Lesson learnt.

+ 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. VLOOKUP with duplicates
    By clammastak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-27-2015, 08:22 PM
  2. SUM VLOOKUP duplicates?
    By AndromedusO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2014, 12:25 PM
  3. Vlookup with duplicates
    By harrisj_ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2014, 10:19 AM
  4. VLOOKUP for duplicates
    By mattdh12 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2013, 09:14 AM
  5. Vlookup With Duplicates
    By skate1991 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2013, 08:01 AM
  6. Vlookup with duplicates
    By MattP299 in forum Excel General
    Replies: 1
    Last Post: 12-19-2011, 05:22 PM
  7. Vlookup with duplicates
    By jorgetb in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-12-2010, 05:45 AM

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