+ Reply to Thread
Results 1 to 6 of 6

Function Multivlookup deletes duplicates...

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    28

    Function Multivlookup deletes duplicates...

    Hello guys,

    I found this very useful function which basically is a multivlookup, returning several values of one criteria.
    It works great, only that it seems to delete the duplicates of what it finds (instead of returning Apple, Apple, Orange, I would only get Apple, Orange...)

    Now, I have never created functions and am unable to tweak the code so that it stops deleting the duplicates... Is there anyone that could help me by giving it a try?

    Please Login or Register  to view this content.
    Any help is appreciated
    Last edited by aucho; 06-06-2014 at 02:15 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Function Multivlookup deletes duplicates...

    Hi,

    The Scripting Dictionary only accepts one of each kind, you'll have to use a different algorithm
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Function Multivlookup deletes duplicates...

    Seems I wrote that code years ago....

    just delete one line to non case-sensitive compare.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-09-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Function Multivlookup deletes duplicates...

    Thanks to both of you guys for the replies!

    Jindon, unfortunately I have removed the below line, but I am still missing the duplicates... Is there another solution or should I just try and find another way?

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Function Multivlookup deletes duplicates...

    Here's a code also I wrote some years ago.
    Assuming the LookUp value in G1 ,LookUp table in A1:C10 and return the 3rd column of the table which is C
    Use like just VLOOKUP Excel function(no 4th argment True/False)
    =VLookUps(G1,A1:C10,3)
    will return multiple and more...

    You can add other conditions as you want.
    If you have other LookUp value in G2 that should matched in 2nd Column then
    e.g
    =VLookUps(G1,A1:C10,3,G2,2)
    returns where 1st column matches to G1 and 2nd column to G2.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-09-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Function Multivlookup deletes duplicates...

    Alright, just tried it and this works just perfectly for what I intended... Thank you so much Jindon for your expertise!

    Aucho

+ 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: 03-09-2011, 07:00 PM
  2. Deletes lines
    By Leentje in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2006, 09:27 AM
  3. Adds abd Deletes
    By Peter Gedney in forum Excel General
    Replies: 1
    Last Post: 08-09-2006, 12:15 AM
  4. Deletes certain columns
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2006, 07:15 AM
  5. Macro that deletes every third row....+
    By ajjag in forum Excel General
    Replies: 4
    Last Post: 06-27-2006, 01:03 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