+ Reply to Thread
Results 1 to 6 of 6

Look up values in from one table and fill in a column on another table with corresponding

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    5

    Look up values in from one table and fill in a column on another table with corresponding

    I can't remember how to do this - help appreciated.

    I have codes that correspond to text in one table and I need to put the text that matches these codes into columns in another table.

    Example attached.

    In other words:

    Identify match the codes in column C on the first tab with column C in the second tab
    Then draw across the data from columns A and B in the second tab into columns D and E in the first tab



    Can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Look up values in from one table and fill in a column on another table with correspond

    hi there, welcome to the forum. maybe this in D2
    =INDEX('SIC Codes'!$B$2:$B$693,MATCH($C2,'SIC Codes'!$C$2:$C$693,0))

    and in E2, change the front portion:
    =INDEX('SIC Codes'!$A$2:$A$693,MATCH($C2,'SIC Codes'!$C$2:$C$693,0))

    to counter errors, simply put an IFERROR:
    =IFERROR(INDEX('SIC Codes'!$B$2:$B$693,MATCH($C2,'SIC Codes'!$C$2:$C$693,0)),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Look up values in from one table and fill in a column on another table with correspond

    In D2 and copy down.

    =INDEX('SIC Codes'!$B$2:$B$2000,MATCH(C2,'SIC Codes'!$C$2:$C$2000,0))

    In E2 and copy down.

    =INDEX('SIC Codes'!$A$2:$A$2000,MATCH(C2,'SIC Codes'!$C$2:$C$2000,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Look up values in from one table and fill in a column on another table with correspond

    may be like this
    to fill SIC Summary
    =INDEX('SIC Codes'!$B$2:$B$693,MATCH('Base Data'!$C14,'SIC Codes'!$C$2:$C$693,0))
    drag down

    to fill SIC Description
    =INDEX('SIC Codes'!$A$2:$A$693,MATCH('Base Data'!$C14,'SIC Codes'!$C$2:$C$693,0))
    drag down

  5. #5
    Registered User
    Join Date
    04-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Look up values in from one table and fill in a column on another table with correspond

    Thank you Ghozsi,Fotis,Benishiryo.

    Just the ticket. Problem solved. I appreciate your help.

    C

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Look up values in from one table and fill in a column on another table with correspond

    ..................

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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