ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   adding a phone area code that is not there (https://www.excelbanter.com/excel-discussion-misc-queries/122406-adding-phone-area-code-not-there.html)

Kelly

adding a phone area code that is not there
 
I have a spreadsheet that I exported from our school database. The phone
numbers were not entered with area codes, and I need to add them because this
spread sheet is being used to update an automated calling system. 98% of the
phone numbers are the same (661) I thought about just adding 6610000000 to
each number, but I'm thinking that will be as much work as adding to each
field. Help, how can I add an area code to an entire column of 1400 fields
the quickest?

Don Guillett

adding a phone area code that is not there
 
try
for each c in range("a2:a1400"
c.value="661" & c
next c

--
Don Guillett
SalesAid Software

"Kelly" wrote in message
...
I have a spreadsheet that I exported from our school database. The phone
numbers were not entered with area codes, and I need to add them because
this
spread sheet is being used to update an automated calling system. 98% of
the
phone numbers are the same (661) I thought about just adding 6610000000
to
each number, but I'm thinking that will be as much work as adding to each
field. Help, how can I add an area code to an entire column of 1400
fields
the quickest?




RagDyeR

adding a phone area code that is not there
 
Try a custom format of:
"661-"#

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kelly" wrote in message
...
I have a spreadsheet that I exported from our school database. The phone
numbers were not entered with area codes, and I need to add them because
this
spread sheet is being used to update an automated calling system. 98% of
the
phone numbers are the same (661) I thought about just adding 6610000000
to
each number, but I'm thinking that will be as much work as adding to each
field. Help, how can I add an area code to an entire column of 1400
fields
the quickest?



Kelly

adding a phone area code that is not there
 
The custom format worked great! Thanks. I always feel stupid and think "Why
didn't I think of that?" Oh well, I guess that why you guys are here.

"RagDyer" wrote:

Try a custom format of:
"661-"#

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kelly" wrote in message
...
I have a spreadsheet that I exported from our school database. The phone
numbers were not entered with area codes, and I need to add them because
this
spread sheet is being used to update an automated calling system. 98% of
the
phone numbers are the same (661) I thought about just adding 6610000000
to
each number, but I'm thinking that will be as much work as adding to each
field. Help, how can I add an area code to an entire column of 1400
fields
the quickest?




RagDyeR

adding a phone area code that is not there
 

Appreciate the feed-back ... BUT ...
Just re-read your OP, and I'm wondering if *just* changing the *format*, and
*not* changing the actual value in the cell is good enough for your
purposes.

Don't know code, but it looks like Don's suggestion will change the *value*
in the cell.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kelly" wrote in message
...
The custom format worked great! Thanks. I always feel stupid and think
"Why
didn't I think of that?" Oh well, I guess that why you guys are here.

"RagDyer" wrote:

Try a custom format of:
"661-"#

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kelly" wrote in message
...
I have a spreadsheet that I exported from our school database. The
phone
numbers were not entered with area codes, and I need to add them
because
this
spread sheet is being used to update an automated calling system. 98%
of
the
phone numbers are the same (661) I thought about just adding
6610000000
to
each number, but I'm thinking that will be as much work as adding to
each
field. Help, how can I add an area code to an entire column of 1400
fields
the quickest?






All times are GMT +1. The time now is 06:55 AM.

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