Simple question- please help!

  • Thread starter Thread starter Mark31
  • Start date Start date
M

Mark31

I have a column of data that contains a 7 digit number in each row. I
need to insert a hyphen after the 2nd number for formatting purposes.
Any easy way to do it? I am getting tired of the copy and paste.
Example below

As it looks now:
990000
990001

How I need it to look:
99-0000
99-0001

Thanks.
 
If it is for formnatting purposes then Custom format the cells as:

##-#####

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
Try =LEFT(A1,2)&"-"& RIGHT(A1,4) copy down as far as needed.

Then copy - paste special - values to get rid of the formulas

HTH
Regards,
Howard
 
A Custom Format that looks something like 00-#### should do what you want.

Select your column, right-click and select Format Cells. The first tab is
"Number". Custom is at the bottom of the left-hand list.
HTH
 

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