+ Reply to Thread
Results 1 to 5 of 5

VBA Concatenate string values from multiple columns in separate worksheet

  1. #1
    Registered User
    Join Date
    04-14-2012
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    25

    VBA Concatenate string values from multiple columns in separate worksheet

    Hello,

    I have two worksheets set-up in my workbook "Furniture" & "Fabrics"

    On the "Furniture" sheet, I have a list of furniture items with "Upholstery" under column F.

    On the "Fabrics" sheet, I have a list of the same furniture items but expanded depending on how many fabrics exist for each furniture item. belong to each item.

    For example, item "Chair" has two fabrics, therefore I will have two rows on the "Fabrics" worksheet with more details regarding each fabric (supplier name & fabric reference).

    The link here is "BOQ code" which is a unique and non-repetitive string value in the "Furniture" sheet.

    I was endlessly trying to figure out a solution through VBA to concatenate all the fabric supplier name and fabric reference ("Fabrics" sheet columns F & G) into the Upholstery cell ("Furniture" sheet column F) based on the "BOQ code".

    Can anybody help me with writing a piece of code that does that?

    Thanks a lot.
    Attached Files Attached Files
    Last edited by thedefense; 01-21-2017 at 08:01 AM.

  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: VBA Concatenate string values from multiple columns in separate worksheet

    Hi,

    What's most important here? Is is to see the values concatenated into a single string on a single line or to see the Upholstery items grouped within the BOA code which can be achieved more simply with a Pivot Table. See below
    Attached Images Attached Images
    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
    04-14-2012
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: VBA Concatenate string values from multiple columns in separate worksheet

    Hi Richard,

    Thanks for the reply.

    The goal is to have the values concatenated into a single string on a single line because that cell will be used in other documents such as estimates and invoices.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: VBA Concatenate string values from multiple columns in separate worksheet

    This should do
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-14-2012
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: VBA Concatenate string values from multiple columns in separate worksheet

    Great, that works perfectly! Thanks a lot.

+ 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. [SOLVED] Formula or function to separate string of text in a cell to multiple columns
    By Chris McGlothen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-29-2016, 12:10 PM
  2. [SOLVED] Macro Needed to Concatenate Data in separate COLUMNS
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 03-11-2015, 04:34 PM
  3. Linking multiple columns to populate on a separate worksheet
    By babymd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-16-2013, 06:07 PM
  4. Replies: 1
    Last Post: 08-02-2013, 09:58 PM
  5. [SOLVED] Hide Columns Based on Values Referenced from Separate Worksheet
    By xkittenxx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2013, 08:35 PM
  6. Replies: 11
    Last Post: 12-04-2012, 02:56 AM
  7. Lookup cell value in separate worksheet and return multiple matched values
    By jwhite68 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2007, 12:17 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