ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Excel format conversion (https://www.excelbanter.com/new-users-excel/264206-excel-format-conversion.html)

Aaron H

Excel format conversion
 
Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks

Eduardo

Excel format conversion
 
Hi,
you can get the numbers but the text, a solution is to use text to columns
and then insert columns everyt three other

"Aaron H" wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks


Gord Dibben

Excel format conversion
 
123456789 can be custom formatted 000-000-000

The letters not so easy.

You would need a helper column for that.

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

Since the "numbers" are used as testual serial numbers you could skip the
custom format and use the same formula all the way down the list.


Gord Dibben MS Excel MVP

On Thu, 20 May 2010 10:23:01 -0700, Aaron H <Aaron
wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks



John[_22_]

Excel format conversion
 
Hi Aaron
This works for numbers : =LEFT(A1,3)&-MID(A1,5,3)&-RIGHT(A1,3)
This one works for text and numbers, but your numbers are changed to text.
=LEFT(A2,3)&"-"&MID(A2,5,3)&"-"&RIGHT(A2,3)
HTH
John

"Aaron H" <Aaron wrote in message
...
Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks



Aaron H[_2_]

Excel format conversion
 
Thanks Eduardo,
What I need is to add the dash every three caracters
Instead of 123456789 I need as a result 123-456-789

"Eduardo" wrote:

Hi,
you can get the numbers but the text, a solution is to use text to columns
and then insert columns everyt three other

"Aaron H" wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks


Eduardo

Excel format conversion
 
try this, cell format, custom and enter

000"-"000"-"000

"Aaron H" wrote:

Thanks Eduardo,
What I need is to add the dash every three caracters
Instead of 123456789 I need as a result 123-456-789

"Eduardo" wrote:

Hi,
you can get the numbers but the text, a solution is to use text to columns
and then insert columns everyt three other

"Aaron H" wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks


Eduardo

Excel format conversion
 
try this, cell format, custom and enter

000"-"000"-"000

"Aaron H" wrote:

Thanks Eduardo,
What I need is to add the dash every three caracters
Instead of 123456789 I need as a result 123-456-789

"Eduardo" wrote:

Hi,
you can get the numbers but the text, a solution is to use text to columns
and then insert columns everyt three other

"Aaron H" wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks


Aaron H[_2_]

Excel format conversion
 
Excellent... Thanks

"Eduardo" wrote:

try this, cell format, custom and enter

000"-"000"-"000

"Aaron H" wrote:

Thanks Eduardo,
What I need is to add the dash every three caracters
Instead of 123456789 I need as a result 123-456-789

"Eduardo" wrote:

Hi,
you can get the numbers but the text, a solution is to use text to columns
and then insert columns everyt three other

"Aaron H" wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks


Gord Dibben

Excel format conversion
 
Excellent..........As long as you know that custom won't work with text.


Gord

On Thu, 20 May 2010 11:25:01 -0700, Aaron H
wrote:

Excellent... Thanks

"Eduardo" wrote:

try this, cell format, custom and enter

000"-"000"-"000

"Aaron H" wrote:

Thanks Eduardo,
What I need is to add the dash every three caracters
Instead of 123456789 I need as a result 123-456-789

"Eduardo" wrote:

Hi,
you can get the numbers but the text, a solution is to use text to columns
and then insert columns everyt three other

"Aaron H" wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them, but
doing it one by one will take me an eternity.

Thanks



Rick Rothstein

Excel format conversion
 
=LEFT(A1,3) & "-" & MID(A1,4,3) & "-" & RIGHT(A1,3)

Or this slightly shorter alternate formula...

=REPLACE(REPLACE(A1,7,0,"-"),4,0,"-")

--
Rick (MVP - Excel)



"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
123456789 can be custom formatted 000-000-000

The letters not so easy.

You would need a helper column for that.

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

Since the "numbers" are used as testual serial numbers you could skip the
custom format and use the same formula all the way down the list.


Gord Dibben MS Excel MVP

On Thu, 20 May 2010 10:23:01 -0700, Aaron H <Aaron
wrote:

Hi guys, is there a way to convert the following
123456789 to 123-456-789
or
abcdefghi to abc-def-ghi
I need to convert a long list of serial numbers so I can look for them,
but
doing it one by one will take me an eternity.

Thanks




All times are GMT +1. The time now is 09:35 PM.

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