PC Review


Reply
Thread Tools Rate Thread

Add a charcater between numbers -

 
 
Lee
Guest
Posts: n/a
 
      23rd Jun 2008
Currently I have a large spread sheet 38,000 lines that I need to add a -
between the phone number so the file can be uploaded to another system. I'm
working on excel 2003 and was wondering is there a formula that would allow
me to do this?

The current data looks like this 3145555555. I need it to look like this
314-555-5555

Any ideas?
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      23rd Jun 2008
format>cells>special>telephone number
or
format>cells>custom>###-###-####

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Lee" <(E-Mail Removed)> wrote in message
news:03CB5F9B-E089-48EC-AF23-(E-Mail Removed)...
> Currently I have a large spread sheet 38,000 lines that I need to add a -
> between the phone number so the file can be uploaded to another system.
> I'm
> working on excel 2003 and was wondering is there a formula that would
> allow
> me to do this?
>
> The current data looks like this 3145555555. I need it to look like this
> 314-555-5555
>
> Any ideas?


 
Reply With Quote
 
TomPl
Guest
Posts: n/a
 
      23rd Jun 2008
If you want to change the data in addition to the format you might consider
this formula then copy the value to another cell.

=CONCATENATE(LEFT(A3,3),"-",MID(A3,4,3),"-",RIGHT(A3,4))

"Lee" wrote:

> Currently I have a large spread sheet 38,000 lines that I need to add a -
> between the phone number so the file can be uploaded to another system. I'm
> working on excel 2003 and was wondering is there a formula that would allow
> me to do this?
>
> The current data looks like this 3145555555. I need it to look like this
> 314-555-5555
>
> Any ideas?

 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      23rd Jun 2008
Hi,
If your phone number data starts in F2, put this in G2 and copy down.
=LEFT(F2,3)&"-"&MID(F2,4,3)&"-"&RIGHT(F2,4)
Then copy and paste the hyphenated data over the original data, and delete
the column G data.

Or, select the phone number column, and custom format with:
###-###-####

Regards - Dave.
 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      23rd Jun 2008
On Mon, 23 Jun 2008 09:36:04 -0700, Lee <(E-Mail Removed)> wrote:

>Currently I have a large spread sheet 38,000 lines that I need to add a -
>between the phone number so the file can be uploaded to another system. I'm
>working on excel 2003 and was wondering is there a formula that would allow
>me to do this?
>
>The current data looks like this 3145555555. I need it to look like this
>314-555-5555
>
>Any ideas?


This will work with phone numbers with or without area codes prepended:

=TEXT(A1,"[<=9999999]###-####;(###) ###-####")

--ron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert numbers stored as text to numbers errors after loading data in jobs Microsoft Excel Programming 2 28th Mar 2007 02:57 AM
Need to reconcile numbers accounting Harlan Grove code doesn't work for negative numbers aep002@cox.net Microsoft Excel Programming 1 28th Jul 2006 07:09 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Microsoft Excel Worksheet Functions 3 19th Jan 2006 09:52 AM
Access database objects sorting numbers within titles as numbers =?Utf-8?B?S2F0ZQ==?= Microsoft Access VBA Modules 0 13th Jan 2006 03:51 PM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Microsoft Excel Worksheet Functions 1 9th Jan 2006 01:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.