+ Reply to Thread
Results 1 to 2 of 2

Can I use CONCATENATE with a varying number of cells?

  1. #1
    Registered User
    Join Date
    09-21-2009
    Location
    Bloomsburg, PA
    MS-Off Ver
    Excel for Mac
    Posts
    3

    Can I use CONCATENATE with a varying number of cells?

    I am summarizing a .csv export from a survey program, and part of the survey is an open-ended comment. I want to be able to use the same template, and just copy in the data from a new survey to update. However, one survey might have 3 respondents, and one might have 6. My current formula is "=CONCATENATE(C1,CHAR(10),C2,CHAR(10),C3)" where C1:C3 are the comments (and CHAR(10) gives me a line break). Is there a way to capture a variety of respondents (up to 15) without using huge string of cells, and without having additional lines if there are only a few respondents?

    Dan

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Can I use CONCATENATE with a varying number of cells?

    Try using this custom UDF

    Please Login or Register  to view this content.
    and applying this formula
    =SUBSTITUTE(TRIM(ACONCAT(C1:C3," "))," ",CHAR(10))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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