+ Reply to Thread
Results 1 to 15 of 15

VlookUp Multiple Tables to Concatenate

  1. #1
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    VlookUp Multiple Tables to Concatenate

    Hi Sir/Mdm,
    I need advise and tips to fine tune my VlookUp as it only vlookup one table at a time and it returns wrongly if the value I look for is a duplicate.
    Basically, I have created 3 tables and each table has a Code to represent each description respectively. I need the vlookup to match and concatenate in a single cell. Please refer to my attached file for better understanding. Any help and advice is greatly appreciated. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: VlookUp Multiple Tables to Concatenate

    The main problem here was that the 1 corresponding to Malaysia was stored as text. Now fixed. Is this what you had wanted?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: VlookUp Multiple Tables to Concatenate

    Find the attached file
    one more column was created for Digit and used lookup function
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: VlookUp Multiple Tables to Concatenate

    Hi Glenn,
    Thanks for the prompt reply. I need E9 to vlookup the D9 to match the range of =A1:B14. 3 values from the tables must be concatenated in a single cell.
    I hope i have cleared the confusion. Thanks a lot.
    Attached Images Attached Images
    Last edited by seanyeap; 01-03-2015 at 05:44 AM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: VlookUp Multiple Tables to Concatenate

    I was really confused until I saw the edit to your last post.

    Try this...
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: VlookUp Multiple Tables to Concatenate

    Hi Glenn,
    I am terribly sorry to have caused the confusion.
    Last edited by seanyeap; 01-03-2015 at 05:46 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: VlookUp Multiple Tables to Concatenate

    Hi Glenn,
    Now D8 "K43" return correctly from the values of Table 1,2 & 3 as "Kiwi April uk". What if I add 4th digit in D8 as "K435" and "5" will refer to the new table 4?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: VlookUp Multiple Tables to Concatenate

    No it won't. You didn't ask for the inclusion a fourth digit until now. If you want to add more digits, you will FIRST need to define how many, AND you will need a helper column, similar to that suggested by nflsales.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: VlookUp Multiple Tables to Concatenate

    See the attached file
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: VlookUp Multiple Tables to Concatenate

    Hi nflsales,
    It says formula is too long when I added the sixth table. How to simplify the formula so that total of 7 tables will be added? Digit 6 is not allowed to enter. I also attached my file. Thank you.
    index.jpg
    Attached Files Attached Files
    Last edited by seanyeap; 01-04-2015 at 12:47 PM.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: VlookUp Multiple Tables to Concatenate

    Hi. Try this...
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: VlookUp Multiple Tables to Concatenate

    Hi Glenn,
    It is amazing, this is what I am looking for. So I can add as many tables as possible. Thanks a lot.

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: VlookUp Multiple Tables to Concatenate

    @ Glenn & Seanyeap Pls. Excuse me, if you k53233 instead of k43233 it is giving complete Blank

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: VlookUp Multiple Tables to Concatenate

    Did I miss a request by the OP to incorporate something for matches that aren't matches? The way that the request is currently stated, K53233 should (and does) produce a blank.

    if Seanyeap wants something else, I'm sure that he'll let us know, and we can take that into account.

    Seanyeap: I forgot to add that the formula in Post 11 is an array formula and must be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  15. #15
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: VlookUp Multiple Tables to Concatenate

    Hi Glenn & Nflsales,
    Thanks for all your valuable time and effort to get it done, really appreciate. I will try it out to add more tables and see if it works perfectly.

+ 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. Vlookup and concatenate multiple colums of date
    By Ashtangi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 10:00 PM
  2. Vlookup to concatenate three tables not lining up right...
    By MonkeyDKS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 01:56 PM
  3. vlookup multiple tables
    By time2soar in forum Excel General
    Replies: 2
    Last Post: 08-03-2011, 07:40 PM
  4. Vlookup multiple tables?
    By ace2302 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2009, 07:42 AM
  5. vlookup across multiple tables?
    By Lochlan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2005, 11:12 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