insert "-" as fourth character in number string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 8700 rows of numerical data, and I would like to insert a "-" as the
fourth character from the left in each cell, so that 101394 becomes 101-394,
and 1011001403 becomes 101-1001403. Any help would be greatly appreciated.
 
Hi,

One way is to use a helper column with the following formula:

=LEFT(A1,3)&"-"&RIGHT(A1,LEN(A1)-3)

then copy the helper column and paste it over the original data as values
(paste special/Values).

HTH
Jean-Guy
 

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

Back
Top