+ Reply to Thread
Results 1 to 6 of 6

double lookup excel?

  1. #1
    Registered User
    Join Date
    06-12-2014
    Posts
    4

    double lookup excel?

    upload.xlsxI have a set of data around 25000 rows, for simplicity sake. i have 2 columns (submissionid, address,locationid), the table i want to compare it with has 4 columns(submissionid, address1,or address2,locationid). I want to retrieve the locationid from table 2 and put it in table 1.
    The address from the first table can either come from address1 column or address2 column.
    Most times, vlookup will solve the problem, however, some of the address are duplicates with different submissionid.

    Ex: submissionid = 4, address = 25 main street, locationid = 7
    submissionid=7, address = 25 main street, locationid= 8

    Any way to solve this problem? I tried to use pivot table matrix, but my data set is too big!

    Thanks

    edit:As you can see, some of the submissionid takes more than 1 address, and the locationid can be nonexclusive. however, locationids are exclusive within its submissionid (ie, there can't be two of the same locationid for 1 submissionid)
    Last edited by ipandabear; 06-12-2014 at 02:50 PM.

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: double lookup excel?

    Hi
    Upload a sample sheet with input and expected output then someone will be able to help you
    Thanks
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Registered User
    Join Date
    06-12-2014
    Posts
    4

    Re: double lookup excel?

    yep! thanks for the advice. just did it

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: double lookup excel?

    4 122 main street
    5 123 main street
    can one address have the same submission id?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    06-12-2014
    Posts
    4

    Re: double lookup excel?

    Quote Originally Posted by martindwilson View Post
    4 122 main street
    5 123 main street
    can one address have the same submission id?
    Sorry i made an error. those 2 should have the same address

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: double lookup excel?

    Maybe this will solve your problem. I used a helper column. Change the ranges to match your actual data.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Excel MATCH w/Double Lookup on a table of data derived from Access.
    By yeti_one in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-04-2013, 12:44 PM
  2. Double Lookup Help
    By Jogier505 in forum Excel General
    Replies: 2
    Last Post: 02-19-2010, 08:48 PM
  3. double lookup
    By Damedron in forum Excel General
    Replies: 3
    Last Post: 03-27-2009, 03:48 PM
  4. [SOLVED] double lookup
    By Geir in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-02-2005, 06:20 PM
  5. [SOLVED] double lookup
    By Geir in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-02-2005, 06:17 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