+ Reply to Thread
Results 1 to 12 of 12

Table lookup and concatenate

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    shropshire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Red face Table lookup and concatenate

    Gang,

    I have two tables of data. I would like to lookup a all data items in the second table (first col) in the first table (first col) and if found concatenate the associated text data to that of the text data in the first Table.

    Data example;
    Table 1 Table 2
    9876 a 1234 z
    8765 b 2345 y
    7654 c 3456 x
    3456 d 4567 w

    The result of the function would be table 1, would show the item 3456 with the text field amended to d,x
    3456 d,x
    Can anybody help with this, cheers Sherriff

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Table lookup and concatenate

    Hello Sherriff and welcome to the forum

    with the text field amended to d,x
    3456 d,x
    Not clear..Could you share an example workbook... ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Table lookup and concatenate

    This is what you're up to?

    =$E5&" "&$F5&" "&VLookup($E5,$G$2:$H$5,2,0)
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    06-27-2012
    Location
    shropshire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Table lookup and concatenate

    Oeldere,

    Thats great, Thank you.

    Could I ask is there a way to put the formula in sheet 2 but have the result answered or written into the text col in sheet 1?

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    shropshire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Table lookup and concatenate

    Dilipandy,

    Thank you for your offer of help as you can see Oeldere has provided a very good answer, but as requested here is a sample worksheet.

    Book1.xls

    Thank you Sherriff

  6. #6
    Registered User
    Join Date
    06-27-2012
    Location
    shropshire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Table lookup and concatenate

    oeldere,

    Your very fast, I am sorry I am not making myself clear.

    Sheet 1 will contain the primary data and sheet 2 will contain the new data.

    I would like to check the new data(sheet 2) against the primary data(Sheet 1) and if a previously identified number exists in sheet 1 the text field in sheet 1 should be updated with the additional text field associated with the found record in sheet 2.

    I hope this is clear

    Sherriff

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Table lookup and concatenate

    See if this is what you're up to.

    If not, please add the desired result in the worksheet.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Table lookup and concatenate

    If you asked if it's possible to have table 2 on sheet 2 => the answer is Yes.

    If you asked if it's possible to have the answer in sheet 1, when you have the table 2 on sheet 2 => the answer is Yes.

    e.g.
    =$E5&" "&$F5&" "&VLookup($E5,sheet2!$A$1:$B$4,2,0)

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Table lookup and concatenate

    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?
    If you have (other) questions, just ask.

  10. #10
    Registered User
    Join Date
    06-27-2012
    Location
    shropshire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Table lookup and concatenate

    Sorry I was not sure how to mark it as solved hope this is correct

    Sherriff

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Table lookup and concatenate

    I suppose it is on the left site above the start of your question.

    Just below new post.

+ 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