+ Reply to Thread
Results 1 to 5 of 5

Vlookup and Concatenate

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    United States
    MS-Off Ver
    11
    Posts
    6

    Vlookup and Concatenate

    Hi All,

    I have been trying to concatenate data from the same column by looking up and matching the IDs from two different sheets, but I have had any luck with the formula. Keeps giving me an error.

    I have attached an excel document as an example.

    What I would like to do is match the ID from Sheet1 Column A with the ID on Sheet2 Column A and Concatenate cells from Sheet2 Column B that pertain to that ID.

    It sounds like a simple formula but I think I am over complicating it.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup and Concatenate

    Hi,

    Not entirely sure what you mean by concatenate. I suspect you are just trying to return the Demo Id ref, in which case

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you do want to concatenate the A2 value then

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-22-2015
    Location
    United States
    MS-Off Ver
    11
    Posts
    6

    Re: Vlookup and Concatenate

    Column A in Sheet2 has duplicate values. So for example ID# 678584 is twice and has two (2) different values for Demo ID.
    I would like to look up ID in A Sheet1, see if it exists in A SHeet2 and if so bring back the values that exist in B-Sheet2. ( Since there are more than 1 value on column B sheet2 I figured the concatenate function could work)

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup and Concatenate

    You have less than 300 cells in sheet1 - out of over 35000 cells - that match the cells in sheet2.
    =IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$339,2,0),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    United States
    MS-Off Ver
    11
    Posts
    6

    Re: Vlookup and Concatenate

    Hi,
    I have used that formula before and it works but where I am having difficulties is how to bring back multiple values in one cell. So since an ID has more than Demo ID, I need to bring back all of the DEMO IDs associated to that particular ID. I figured Concatenate formula would work but now that I think about it, an array formula could work better.

    Example:
    Sheet1
    A2- 12345
    A3- 67899
    A4- 23456
    A5- 45677

    Sheet2:
    A2-12345 B2 - John
    A3 - 12345 B3-Smith
    A4-45677 B4 - Dan
    A5-67899 B5-Joe
    A6-45677 B6- Bill
    A7-23456 B7- James
    A8-23456 B8- Dennis

    So, Sheet1 has unique values and Sheet2 contains duplicate IDs which I do not want to filter. Column B on Sheet2 has the values associated to that particular ID.
    I would like to bring back the values that are on column B sheet2 to Sheet1 by matching the IDs. B2 in Sheet1 should look something like this....

    A2- 12345 B2 -John,Smith
    A3- 67899 B3-Joe
    A4- 23456 B4- James, Dennis
    A5- 45677 B5 - Dan, Bill

+ 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. Excel 2007 : vlookup and CONCATENATE
    By Jerseynjphillypa in forum Excel General
    Replies: 4
    Last Post: 11-04-2011, 09:38 AM
  2. VLOOKUP with CONCATENATE
    By johnjohns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2011, 07:59 AM
  3. Vlookup with concatenate?
    By Lolprotiens in forum Excel General
    Replies: 5
    Last Post: 05-01-2011, 09:29 PM
  4. Vlookup & Concatenate
    By AK262007 in forum Excel General
    Replies: 2
    Last Post: 03-20-2009, 11:43 AM
  5. Concatenate and Vlookup
    By Lynneth in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-10-2005, 08:07 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