+ Reply to Thread
Results 1 to 10 of 10

VLookUP with multiple results.

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Banjaluka
    MS-Off Ver
    2007
    Posts
    11

    VLookUP with multiple results.

    Greetings fellow members.
    I'm in need of a formula that gives me a list of names that have had their orders returned.

    This is an example of what the table looks like.
    amwdx95.png

    It has approximately 1.5K entries (or in other words, I would need it to lookup the entirety of columns C and E), and what I need it to do is to give me a list of all the names (they're in column C) that have their E column value as "Vraćeno" (means returned in my native). Another thing that I need to note is that the list needs to be presented on another sheet. The sheet that it needs to lookup from is called "Lista".

    Grateful for any help provided.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookUP with multiple results.

    1) Highlight the titles
    2) Turn on the Autofilter
    3) Filter column E by the value you want
    4) Copy the visible rows to another sheet, if you really need to
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: VLookUP with multiple results.

    Something like...
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 03-16-2016 at 10:59 PM.
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookUP with multiple results.

    Note, this is not the VBA forum, it is not typical to provide VBA solutions in this area, at least not without explaining more about what it is and how to apply it. FYI.

  5. #5
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: VLookUP with multiple results.

    Sorry disregard...I should've realized this was not in the VBA forum!

  6. #6
    Registered User
    Join Date
    03-10-2015
    Location
    Banjaluka
    MS-Off Ver
    2007
    Posts
    11

    Re: VLookUP with multiple results.

    Quote Originally Posted by cplettner View Post
    Sorry disregard...I should've realized this was not in the VBA forum!
    If you'd elaborate on how to use it, I gladly would.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookUP with multiple results.

    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save as a macro-enabled workbook

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.

  8. #8
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: VLookUP with multiple results.

    Yup that's thats how you get started! Thanks @JBeaucaire! Also you will need to add a sheet named "Destination" for `Worksheets("Destination").Range("A1")` or change the code to match the name of the sheet you wish to dump the rows into. @JBeaucaire the only think I wasn't quite sure of is how the autofilter would handle the accent marks, ć. I know this is a particular ascii code, but wasn't sure how to get that into the VBA. Any thoughts?

    You can also delete the following two lines from the code...they are unnecessary (I decided to go a different way).
    Please Login or Register  to view this content.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookUP with multiple results.

    the variable "wb" is also unneeded

  10. #10
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: VLookUP with multiple results.

    Here is the corrected code...
    Please Login or Register  to view this content.

+ 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. Help using vlookup to return multiple results for one vlookup value
    By Akmon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2015, 06:00 AM
  2. [SOLVED] using Vlookup with multiple results and averaging the results.
    By xatomicx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2015, 10:19 AM
  3. [SOLVED] Help with multiple results when using vlookup
    By christopherjward in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-22-2013, 01:26 PM
  4. Vlookup with multiple results
    By mschweinzger in forum Excel General
    Replies: 1
    Last Post: 04-04-2012, 03:34 PM
  5. Vlookup, multiple row results
    By darvistor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2011, 06:30 PM
  6. Multiple Results for VLookUp
    By sighlent1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-12-2009, 01:09 PM
  7. VLOOKUP for multiple results
    By Steamboat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2005, 10:27 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