ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Inserting Dashes (https://www.excelbanter.com/excel-programming/420231-inserting-dashes.html)

Pittman

Inserting Dashes
 
In Excel 2007 I have a large spread sheet with 9 digit cell numbers and text
that I need to insert dashes between. Is there a way that I can drag a column
and insert the dashes all at one time.

Current Display: 123XY1234
Display Needed: 123-XY-1234
--
Marcus

Bob Phillips[_3_]

Inserting Dashes
 
Use

=LEFT(A1,3)&"-"&MID(A1,4,2)&"-"&RIGHT(A1,3)

and copy down.

--
__________________________________
HTH

Bob

"Pittman" wrote in message
...
In Excel 2007 I have a large spread sheet with 9 digit cell numbers and
text
that I need to insert dashes between. Is there a way that I can drag a
column
and insert the dashes all at one time.

Current Display: 123XY1234
Display Needed: 123-XY-1234
--
Marcus





All times are GMT +1. The time now is 12:20 PM.

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