+ Reply to Thread
Results 1 to 10 of 10

Vlookup with Duplicate values

  1. #1
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    Vlookup with Duplicate values

    Hi Everyone,

    i want to have a vlookup formula where i have two data sets where one data set has name written once and and 2nd has duplicate names. SO i want to do a vlookup where when a vlookup is done on a duplicate data set the result should not be duplicated to the other duplicated values for example

    Data Set 1

    Apple 50

    Kiwi 20

    Data Set 2

    Apple 50

    Apple 0

    Kiwi 20

    Kiwi 0

    Kiwi 0

    Result is in Data set 2

    Thanks

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Vlookup with Duplicate values

    Attach a small representative sample workbook.

    Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    Re: Vlookup with Duplicate values

    Attachment not working

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Vlookup with Duplicate values

    If you followed the steps outlined in post #2, you will find that the attachment function is indeed working.

    Here are the steps in a little more detail for you:
    1) Click on "Go Advanced"
    2) Scroll down then click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file then click on "Open"
    5) Click "Upload"
    6) Click "Close this window"

  5. #5
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    Re: Vlookup with Duplicate values

    This is it
    Attached Files Attached Files

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

    Re: Vlookup with Duplicate values

    In a2, copied across and down:

    =IFERROR(INDEX('Data Set 2'!A:A,AGGREGATE(15,6,ROW('Data Set 2'!$A$2:$A$8)/('Data Set 2'!$B$2:$B$8>0),ROWS($1:1))),"")
    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

  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,178

    Re: Vlookup with Duplicate values

    In B2 of "Data set 2"

    =IFERROR(IF(COUNTIF($A$1:A1,$A2)=0,VLOOKUP($A2,'Data set 1'!$A$2:$B$10,2,0),0),"")

    copy down

  8. #8
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    Re: Vlookup with Duplicate values

    Yup it worked thanksss

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Vlookup with Duplicate values

    Maybe use PivotTable

  10. #10
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Vlookup with Duplicate values

    Hi, to all!

    You can use, This formula:
    ['Data Set 2'!B2] : =IF(COUNTIF(A$2:A2,A2)=1,VLOOKUP(A2,'Data set 1'!$A$2:$B$3,2,),)

    If you have more than one value in Data Set 1, and you want one by one results, you can use this formula:
    ['Data Set 2'!B2] : =IFERROR(INDEX('Data set 1'!B$2:B$3,AGGREGATE(15,6,ROW('Data set 1'!A$2:A$3)-ROW('Data set 1'!A$1)/('Data set 1'!A$2:A$3=A2),COUNTIF(A$2:A2,A2))),)

    Blessings!

+ 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] VLOOKUP where Duplicate Values
    By rz6657 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2016, 12:09 PM
  2. [SOLVED] Vlookup duplicate values
    By JumpyJim in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-22-2016, 03:23 PM
  3. [SOLVED] VLOOKUP and Duplicate Values
    By marshak in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2015, 01:43 AM
  4. [SOLVED] using vlookup on duplicate values to get the sum of both
    By 4rch@ng3l in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2014, 01:35 PM
  5. Vlookup with duplicate values
    By bperkins in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2013, 03:31 AM
  6. Need help with vlookup in duplicate values
    By vivshan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2013, 05:54 AM
  7. Vlookup - Duplicate Values
    By sraju in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-28-2010, 09:09 AM

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