+ Reply to Thread
Results 1 to 8 of 8

Combination of VLOOKUP and CONCAT

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    StL
    MS-Off Ver
    Office 2016
    Posts
    24

    Combination of VLOOKUP and CONCAT

    Hello all!
    I have the following situation:
    Workbook A, Sheet 1 has reference numbers in Column A.
    Workbook B, Sheet 1 has the same reference numbers in Column A, but also has multiple Description Lines in Column B.

    I would like to use a combination of VLOOKUP & CONCATE to bring the multi-line descriptions from Workbook B into a single cell in Column D of Workbook A. Basically it would CONCAT all lines in Column B down until it finds the next reference number in Column A (down to the next non-blank cell in Column A)

    Please see the pic for an example.
    Any advice would be greatly appreciated.
    Thanks!
    Attached Images Attached Images

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Combination of VLOOKUP and CONCAT

    I would recommend doing the concatenation in Workbook B.
    In C2 put =B2&B3&B4&B5&B6

    Then use this in D2 of Workbook A
    =VLOOKUP(A2,'Workbook B'!A:C,3,FALSE)

  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    StL
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Combination of VLOOKUP and CONCAT

    It totally makes sense to do the merge in Workbook B...didn't even think of that.
    However, I'd still want a way to automate the merge (I have a couple hundred reference numbers and don't want to do all of the "&" work)
    Thanks for the reply!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Combination of VLOOKUP and CONCAT

    Have a look at the CONCAT and TEXTJOIN functions

  5. #5
    Registered User
    Join Date
    09-04-2012
    Location
    StL
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Combination of VLOOKUP and CONCAT

    Any suggestions on CONCAT/TEXTJOIN Column B down to the next non-blank cell in Column A?

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Combination of VLOOKUP and CONCAT

    If you fill in the blanks of column A on Workbook B (A3:A6=0001, A8:A10=0002 etc)
    Then in C2 and filled down

    =IF(A2=A1,"",CONCAT(OFFSET(B2,0,0,COUNTIF(A$2:A$100,A2),1)))

  7. #7
    Registered User
    Join Date
    09-04-2012
    Location
    StL
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Combination of VLOOKUP and CONCAT

    Worked like a charm.
    Thanks!!!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Combination of VLOOKUP and CONCAT

    You're welcome.

+ 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. Replies: 2
    Last Post: 12-01-2014, 03:25 PM
  2. difficult vlookup, 2 column conditions - no concat
    By pavlos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2013, 09:58 PM
  3. Combination VLookUp
    By croeder in forum Excel General
    Replies: 1
    Last Post: 06-09-2011, 09:55 PM
  4. Concat Vlookup
    By Ray789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2010, 02:15 PM
  5. Combination of H & Vlookup??
    By giantwolf in forum Excel Formulas & Functions
    Replies: 37
    Last Post: 09-06-2005, 07:05 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