Concatenate Values with Spaces

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
950
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Good day everyone,
I have a question about how to concatenate a range of cells.
1>Each cell can have a value 1 through 49
2>If a cell has a value between 1 and 9 I would like to concatenate the cell with a space after the value.
3>Total of 6 cells that contain a value. Cell columns A1 through F1.

Example 1,
Cell A1 = 1
Cell B1 = 2
Cell C1 = 3
Cell D1 = 4
Cell E1 = 5
Cell F1 = 6

If I concatenate the cell range A1 through F1 in cell G1 I want it to look like this (with a space after each value)
1 2 3 4 5 6

Example 2,
Cell A1 = 1
Cell B1 = 2
Cell C1 = 3
Cell D1 = 15
Cell E1 = 24
Cell F1 = 49

If I concatenate the cell range A1 through F1 in cell G1 I want it to look like this (with a space after each value)

1 2 3 152449

Thanks in advance!!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Are you still working with excel 2010, or have you upgraded to a newer version?
With 2019 or 365 you could use something like this. With anything older you will need to do each cell individually.
Manexcel.xlsx
ABCDEFG
11231524491 2 3 152449
Sheet6
Cell Formulas
RangeFormula
G1G1=CONCAT(LEFT(A1:F1&" ",2))
 
Upvote 0
Thanks for the help. I'm using 2010 version. I understand. Changed the formula and works great. Thank you.
 
Upvote 0
Changed the formula and works great.
That's good to hear (y)

There are too many who would have replied with 'doesn't work' instead of attempting to make change anything. It's always nice to see when people learn from the suggestions that we provide :)
 
Upvote 0

Forum statistics

Threads
1,212,927
Messages
6,110,726
Members
448,294
Latest member
jmjmjmjmjmjm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top