View Single Post
  #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