[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Excel - Formatting Concatenation of Cells

Posted on 2011-10-07
Medium Priority
Last Modified: 2012-05-12

Is there a way to combine cell contents across a row to be merged into one? For example:

A1: 2800
B1: 2345

Usually, I would create a formula:

"A1" & " " & "B1" & " " & "C1" to be merged into one cell that contains the formula:

D1: 2800 2345 78598

Please note the space between each cell content. The nuance is that the number of cells to be combined is variable.

Thank you
Question by:tahirih
LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 36931281
There's no simple way to concatenate a range (without VBA) without adding each cell separately, assuming a maximum of 5 values with no spaces in the cells you could do this

=TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1)

TRIM removes any excess spaces....

regards, barry

Author Comment

ID: 36931324
Can you please offer a VBA solution?

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

872 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