Space after every 3 characters in excel

excelinexcel7

New Member
Joined
Nov 8, 2012
Messages
11
Hi Everyone,

I have a list of 1000 columns where the data is like this:

ABCDEFGHIJKL
DCABHG
ABTGYU

I want to add a space after every 3 characters. Please advise, how can I do this in excel.

So the output should be like this.

ABC DEF GHI JKL
DCA BHG
ABT GYU



Thanks
Jay
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Use the standard Find/Replace

Find what ??? (just three ? representing three chars)
replace with ??? (now three ? plus a space at the end)

? is a place holder for any character

Try it it works
 
Upvote 0
Hello,

If the text strings aren't too long, you can use this formula if J16 has ABCDEFGHIJKL:
=CONCATENATE(MID(J16,1,3)," ",MID(J16,4,3)," ",MID(J16,7,3)," ",MID(J16,10,3)," ",MID(J16,13,3)," ") etc., etc., etc......

which can be expanded if necessary.
 
Upvote 0
Thanks Charles, but this doesn't work because the characters are random, so I don't really know what to Find.

instead of putting in ABC or 2ER you actually enter three question marks ??? in the find and question marks ??? plus a space in the replace

therefore excel wil replace any three consectutive characters with those same characters plus a space at the end TRY IT IT WORKS
 
Upvote 0
The thing is, it actually replaces the three characters with ???.

So, using the find and replace method on ABCDEFG, this is replaced by ??? ??? ?.

Unless I am doing something wrong?
 
Upvote 0
You are right guys, it replaces the three characters with ??? which I don't want. The result should be like
ABC DEF GHI JKL
DCA BHG
ABT GYU
 
Upvote 0
This worked.

=CONCATENATE(MID(A2,1,3)," ",MID(A2,4,3)," ",MID(A2,7,3)," ",MID(A2,10,3)," ",MID(A2,13,3)," ",MID(A2,16,3)," ",MID(A2,19,3)," ",MID(A2,22,3)," ",MID(A2,25,3)," ",MID(A2,28,3)," ",MID(A2,31,3)," ",MID(A2,34,3)," ",MID(A2,37,3)," ",MID(A2,40,3)," ",MID(A2,43,3))

Thanks a lot miss_ell


Regards
Jay
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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