+ Reply to Thread
Results 1 to 3 of 3

faster way to concatenate multiple cells with added space

  1. #1
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    faster way to concatenate multiple cells with added space

    I have text in multiple (>20) cells to combine and need to add a space between each cell -

    for example,
    A1: JOHN
    A2: PETE
    A3: MARY

    combined output: JOHN PETE MARY

    While I can literally write out concatenate (a1," ",a2," ",a3," " ...) or a1&" "&a2&" "&a3&" " ...
    since there are more than 20 cells of content to concatenate, is there a faster way to do it without typing out all " " ?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: faster way to concatenate multiple cells with added space

    Your profile says that you are using 2010. Unfortunately, the easiest way to do this in Excel (the TEXTJOIN() function) would require you to upgrade to 2019 or 2016+365 subscription. (Unless, of course, you have upgraded Excel but have not updated your profile).

    How does this task fit into the project? Other spreadsheets (like LibreOffice Calc or Google Sheets) also have the TEXTJOIN() function. If Excel is not an absolute requirement for this task/project, open the spreadsheet in one of these other spreadsheets and use the TEXTJOIN() function.

    If Excel is an absolute requirement, and you are allowed to use VBA, one could write a VBA UDF that mimics the TEXTJOIN() function.

    I would probably use one of those strategies for this. Will any of those strategies work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: faster way to concatenate multiple cells with added space

    A simple and fast way to do this is to put this formula in cell B1:

    =A1

    and this in B2:

    =B1 & " " & A2

    Copy this formula down as far as you need to - the last cell will contain the fully-concatenated result that you require.

    Hope this helps.

    Pete

+ 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: 05-23-2014, 06:49 PM
  2. Multiple Cells values - formula to see which cells added together equal zero?
    By rodders0223 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2013, 11:09 AM
  3. Replies: 8
    Last Post: 09-09-2013, 08:46 AM
  4. Removing an added space
    By PezHead in forum Excel General
    Replies: 11
    Last Post: 09-23-2009, 03:38 PM
  5. Replies: 3
    Last Post: 07-09-2008, 06:20 PM
  6. =concatenate With A Space
    By nander in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 09-06-2005, 07:05 PM
  7. Add Space between concatenate cells
    By Mac Landers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2005, 05:06 PM

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