+ Reply to Thread
Results 1 to 6 of 6

adding contents from multiple cells together

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

    adding contents from multiple cells together

    Hi, all
    How do we add the content of multiple cells together ?
    I am aware of the following function to combine cells "&" (e.g. c3&d3&e3 or c3&" "&d3&" "&e3) but
    (a) I have multiple rows (with different cell numbers per row) that I need to repeat the function
    (b) I want to add a space between the content of each cell
    (see attachment for a better example)

    Is there any "non-manual" (and hopefully non-VBA) way to combine cells?
    (e.g. can we use "..", together with "&" in any way, to assign the range of cells I want to combine)
    Any advice ?
    Attached Files Attached Files
    Last edited by seraphin; 03-16-2016 at 12:40 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: adding contents from multiple cells together

    Your best bet is to end each entry with a space

    then you can use the concat function.

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


    Otherwise you could use a userdefined function to create modified concat function, but you do not want any VBA.

    This will do what you want. If you use a space as your seperator, type:

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


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 03-16-2016 at 01:20 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: adding contents from multiple cells together

    There is no text function that allows you to add together the strings for multiple cells and ranges. in the way you want.
    Concatenate is like using the "&" - everything has to be added one item at a time.

    VBA, on the other hand, is much more flexible. Use about 3 or 4 lines of code to join the text for hundreds of adjacent cells together and insert spaces inbetween.
    Last edited by Kevin#; 03-16-2016 at 01:12 PM.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: adding contents from multiple cells together

    Sorry Kevin, the Concat function will take a range.

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

    Re: adding contents from multiple cells together

    @ mehmetcik.
    Thanks a lot. One thing to add though, somehow my Excel (2010) does not exactly do the concat as you suggested - that is, it returns #NAME? when I tried to "concat (a3:d3)" directly. I have to do either "concat(a3,b3,c3,d3)" or "concat(transpose(a3:d3)) (+F9 thingy)". But "concat" clearly beats the "&". Thanks again.

  6. #6
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: adding contents from multiple cells together

    @mehmetcik forgot that one! Getting a bit long in the tooth.

+ 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: 6
    Last Post: 12-07-2012, 05:38 PM
  2. [SOLVED] Adding cell contents of related cells with criteria
    By Hellkeeper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2012, 08:03 PM
  3. Replies: 0
    Last Post: 06-24-2012, 04:19 PM
  4. Replies: 14
    Last Post: 04-17-2008, 04:12 PM
  5. Adding multiple row contents based on the content of a single cell
    By RickyRichards in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-31-2007, 10:21 AM
  6. Adding Contents of Drop Down Cells
    By Mark Shope in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2005, 03:57 PM
  7. Adding contents of one cell to a range of cells.
    By CLJinVA in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2005, 07:06 PM
  8. [SOLVED] Adding contents of cells by clicking in Excel 2002
    By Kevin Gordon in forum Excel General
    Replies: 8
    Last Post: 01-11-2005, 01:06 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