ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Simple question- please help! (https://www.excelbanter.com/excel-discussion-misc-queries/167338-simple-question-please-help.html)

Mark31

Simple question- please help!
 
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.

Sandy Mann

Simple question- please help!
 
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


Replace @mailinator.com with @tiscali.co.uk


"Mark31" wrote in message
...

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.




--
Mark31




L. Howard Kittle

Simple question- please help!
 
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

"Mark31" wrote in message
...

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.




--
Mark31




Frederik[_3_]

Simple question- please help!
 
Just create a new numerical format 00-0000.

"Mark31" schreef in bericht
...

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.




--
Mark31




Minx

Simple question- please help!
 
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

Mark31

Thanks a lot, your replies were very helpful!


All times are GMT +1. The time now is 12:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com