Excel:  concatenate data into 1 cell

Posted on 2011-03-02
Last Modified: 2012-06-27

Can someone show me how to take a range of data and insert it into 1 cell.  I would like to have it seperate the words with a comma and a space..  Is this possible?

Please see attached. Data.xlsm
Question by:Maliki Hassani
  • 2
LVL 23

Accepted Solution

redrumkev earned 500 total points
ID: 35022042

How are you doing?

I inserted a function, see code and workbook below.

The function is called by the following:

=CONCAT1(cell:cell) the range of cells you want.

In your case: =CONCAT1(A1:A429)

You can add/change the delimited by putting it after the range such as:


I placed the above in cell C3

Hope this helps,

Function Concat1(myRange As Range, Optional myDelimiter As String)
    Dim r As Range

    For Each r In myRange
        Concat1 = Concat1 & r & myDelimiter
    Next r
    If Len(myDelimiter) > 0 Then
        Concat1 = Left(Concat1, Len(Concat1) - Len(myDelimiter))
    End If
End Function

Open in new window

LVL 23

Expert Comment

ID: 35022053

Reference for the above:

LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 35022057
The easiest way is to copy the cells into a text editor, change the carriage returns to spaces, copy the resulting text, and paste into the desired cell in your workbook.


Expert Comment

ID: 35022114
First Of all you will have to get the MoreFunc.dll for excel. Here is the link for it

 Once you install it, there is a  "MCONCAT()" Function . This will help you concatenate a range of cells and you can use your desired separator.

eg : =MCONCAT(A1:A10,",")

Hope this solves your problem.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 31
How to add the word OR to the front of each Excel value 4 37
Excel Score Formula 5 49
Split a string in excel 9 34
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now