INSERT A SPACE INTO A TEXT VALUE

JonRowland

Active Member
Joined
May 9, 2003
Messages
416
Office Version
  1. 365
Platform
  1. Windows
Hi,

Hope someone can help me.

I have a number of text values. However, I need to be able to add a space into these after the fifth character.

Any ideas how I can do this?

Thanks

Jon
 
digging up this good old thread :)

I'm grabbing lists of names and combining the first name and last name columns into one. this leaves me with names that look like this: TomSmith

how do I add a space between first and last name? all last names start with a capital letter.

i'm trying to have it look like this: Tom Smith
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Can you not add the space when combining them initially?
 
Last edited:
Upvote 0
Can you not add the space when combining them initially?

Do you mean if i had a space in front of the last name in the right column?

perhaps i'm simply not combining them correctly... At the moment i'm doing: =A1&A2 and then hitting enter, this bring the first and last name together, just without a space.
 
Upvote 0
That’s an easy change then:

=A1&" "&a2
 
Upvote 0
That’s an easy change then:

=A1&" "&a2

OMG!!! that's sooooooo much better than what my IT guy gave me to work with.

here's what his solution was: =REPLACE(A1, 1+MIN(FIND(CHAR(64+COLUMN($A$1:$Z$1)),MID(A1,2,255)&(CHAR(64+COLUMN($A$1:$Z$1))))), 0, " ")
 
Upvote 0
OMG!!! that's sooooooo much better than what my IT guy gave me to work with.

here's what his solution was: =REPLACE(A1, 1+MIN(FIND(CHAR(64+COLUMN($A$1:$Z$1)),MID(A1,2,255)&(CHAR(64+COLUMN($A$1:$Z$1))))), 0, " ")
:ROFLMAO:
Perhaps you could now apply for his job! ;)
 
Upvote 0

Forum statistics

Threads
1,215,080
Messages
6,123,013
Members
449,093
Latest member
ikke

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