A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel format conversion



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2010, 06:23 PM posted to microsoft.public.excel.newusers
Aaron H
external usenet poster
 
Posts: 1
Default 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
  #2  
Old May 20th, 2010, 06:41 PM posted to microsoft.public.excel.newusers
eduardo
external usenet poster
 
Posts: 2,131
Default 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

  #3  
Old May 20th, 2010, 06:56 PM posted to microsoft.public.excel.newusers
Gord Dibben
external usenet poster
 
Posts: 20,252
Default 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


  #4  
Old May 20th, 2010, 07:05 PM posted to microsoft.public.excel.newusers
John
external usenet poster
 
Posts: 563
Default 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


  #5  
Old May 20th, 2010, 07:11 PM posted to microsoft.public.excel.newusers
Aaron H[_2_]
external usenet poster
 
Posts: 2
Default 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

  #6  
Old May 20th, 2010, 07:18 PM posted to microsoft.public.excel.newusers
eduardo
external usenet poster
 
Posts: 2,131
Default 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

  #7  
Old May 20th, 2010, 07:20 PM posted to microsoft.public.excel.newusers
eduardo
external usenet poster
 
Posts: 2,131
Default 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

  #8  
Old May 20th, 2010, 07:25 PM posted to microsoft.public.excel.newusers
Aaron H[_2_]
external usenet poster
 
Posts: 2
Default 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

  #9  
Old May 20th, 2010, 08:22 PM posted to microsoft.public.excel.newusers
Gord Dibben
external usenet poster
 
Posts: 20,252
Default 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


  #10  
Old May 22nd, 2010, 10:32 PM posted to microsoft.public.excel.newusers
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default 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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.