+ Reply to Thread
Results 1 to 5 of 5

look up data within VBA

  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    look up data within VBA

    Hello,

    I'm having a small problem here, or rather a question.
    I have 3 values (firstname, secondname, place) that I need lookup in a list of items.
    I want to return the row where all 3 the names are found in the list.
    Problem of course is that each value can appear more then once in the list, but the combination is always unique.

    Something like this would be nice:
    Please Login or Register  to view this content.
    But that doesn't work, so anyone with better ideas is more then welcome to share them
    Last edited by Evolta; 12-10-2013 at 06:49 AM.

  2. #2
    Registered User
    Join Date
    09-17-2013
    Location
    East
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: look up data within VBA

    You could simply add if-statements and check for the 2ndname and place in the row the other one is found.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: look up data within VBA

    Hi,

    Perhaps this, assuming your source data is in columns A:C beginning in row 2, and that the 3 search strings for First Name, Last Name and Place are in cells E2, F2 and G2 respectively:

    Please Login or Register  to view this content.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: look up data within VBA

    Can you post a sample file with some data?

  5. #5
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: look up data within VBA

    I will upload a document as is. (new version that doesn't work)

    Main concern is with the selection of customers (so a self made search option)
    You'll notice that I added company there
    Klantbeheer.xlsm

+ 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: 34
    Last Post: 01-21-2014, 03:07 PM
  2. Replies: 4
    Last Post: 02-01-2013, 10:18 AM
  3. Replies: 2
    Last Post: 07-18-2012, 09:11 AM
  4. Searching data in 1 row, giving back data from column thats left to searched data
    By AmiGoCS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2012, 05:16 PM
  5. Use of Excel to pull data from database daily, posting new data below older data
    By Ishness in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2011, 10:08 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