Put A Space Between 2 right characters

C

carl

I have some symbols that look like this

ABC
ABCD
ABCDE

I need a formula that can make this conversion:

A_BC (1 spaces between A and BC)
AB_CD (1 space between AB and CD)
ABC_DE (1 space between ABC and DE)

So I always need the 2 right most characters separated by a space from the
other characters.

I hope I explained this ok.

Thank you in advance.
 
P

Pete_UK

Try this:

=LEFT(A1,LEN(A1)-2)&"_"&RIGHT(A1,2)

assuming your text is in A1. Copy down as required.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top