+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP-data that repeats within a column and the values to carry over vary

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    8

    VLOOKUP-data that repeats within a column and the values to carry over vary

    I have two lists of data and I have to transfer some of the information from one list to the other one. In this case, I need to transfer the information from "column J – Table 2" to "column F – Table 1". I have groupings called test sets (C0110, C011, C012, C013,C014,C015,C035) and they are unique. Test sets are made up of test codes and the test codes can be part of different test sets.

    Test Set C010 is made up of:
    C1220
    C1230
    C1250
    C1260
    C1269
    C1000
    C1160
    C1170
    C1195
    C1196
    C1190
    C1290
    C1400
    C1410
    C1420
    C1430
    C1480
    C1510
    C1550
    C1570

    Test Set C011 is made up of:
    C1220
    C1230
    C1250
    C1260
    C1269
    C1000
    C1160
    C1170
    C1195
    C1196
    C1290
    C1190

    The test codes can have different settings depending on the test set. Such is the information that I am trying to transfer from Table 2 to Table 1. C1220 in Test Set C010 in Column J has a setting of M and the same test code in test set C011 has a setting of O. I tried using VLOOKUP to transfer the information in Column J based on the test code, but it brings over the value in column J of the first match of the test code. In this case, it sets test code C1220 as M for all of the test tests. What other function can I use so that it grabs the value in the J column that belongs to the specific test set?

    I have attached the spreadsheet with the formula I used.
    Attached Files Attached Files

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: VLOOKUP-data that repeats within a column and the values to carry over vary

    It could be easier if you had a second criteria, like "Sodium", "Potassium" etc, As the VLOOKUP has found the first match!

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VLOOKUP-data that repeats within a column and the values to carry over vary

    What about adding the test set as the criteria as well so it only looks to find a match within that range?

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: VLOOKUP-data that repeats within a column and the values to carry over vary

    Try separating TS and TC into their own columns and using an array formula:
    Attached Files Attached Files
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VLOOKUP-data that repeats within a column and the values to carry over vary

    It worked great! Thank you! I will be using for some other lists I need to merge.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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