Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Formatting Phone Numbers with Periods

We are doing a data conversion from OpenVMS to Quicbooks by converting to an
Excel comma delimited file and importing to Quicbooks. Our problem: Column O,
P and R are phone numbers, fax numbers and cell phone numbers and are entered
in the cell as 10 digit numbers (Ex: 1234567890) and we need them converted
to 123.456.7890 (not just displayed, but actually in the field.) The columns
have headers in row one and the data values are from row 2 through 1141. I
have tried cut and paste special to a new column using custom formatting
###.###.#### which ends up as ##########.. We cannot figure out how to do
it and have very little experience with Excel formulas. PLEASE HELP!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 422
Default Formatting Phone Numbers with Periods

Something like this:

Sub Macro3()
Dim Cell As Range
Dim MyRng As Range
Set MyRng = Range("O2:P1141,R2:R1141")
For Each Cell In MyRng
Cell.Value = Left(Cell, 3) & "." & Mid(Cell, 4, 3) & "." & Right(Cell,
4)
Next Cell
End Sub

HTH,
Jim May


"Cam" wrote in message
:

We are doing a data conversion from OpenVMS to Quicbooks by converting to an
Excel comma delimited file and importing to Quicbooks. Our problem: Column O,
P and R are phone numbers, fax numbers and cell phone numbers and are entered
in the cell as 10 digit numbers (Ex: 1234567890) and we need them converted
to 123.456.7890 (not just displayed, but actually in the field.) The columns
have headers in row one and the data values are from row 2 through 1141. I
have tried cut and paste special to a new column using custom formatting
###.###.#### which ends up as ##########.. We cannot figure out how to do
it and have very little experience with Excel formulas. PLEASE HELP!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Formatting Phone Numbers with Periods

If you want a formula...
=MID(D2,1,3)&"."&MID(D2,4,3)&"."&MID(D2,7,99)
This assumes your telephone numbers are in Column D.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Cam"
wrote in message
We are doing a data conversion from OpenVMS to Quicbooks by converting to an
Excel comma delimited file and importing to Quicbooks. Our problem: Column O,
P and R are phone numbers, fax numbers and cell phone numbers and are entered
in the cell as 10 digit numbers (Ex: 1234567890) and we need them converted
to 123.456.7890 (not just displayed, but actually in the field.) The columns
have headers in row one and the data values are from row 2 through 1141. I
have tried cut and paste special to a new column using custom formatting
###.###.#### which ends up as ##########.. We cannot figure out how to do
it and have very little experience with Excel formulas. PLEASE HELP!
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Formatting Phone Numbers with Periods


http://www.cpearson.com/excel/newposte.htm
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting of numbers in a cell on another sheet Slashman Excel Worksheet Functions 4 October 5th 06 09:21 PM
How do you remove duplicate phone numbers in an Excel spreadsheet Bridgette Excel Discussion (Misc queries) 1 May 25th 06 08:38 PM
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
using vlookup to find phone numbers online muskiediver Excel Discussion (Misc queries) 2 April 12th 06 06:43 PM
how to use excel to track phone numbers honey42 New Users to Excel 2 March 31st 06 07:55 AM


All times are GMT +1. The time now is 08:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"