Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I add digits to all numbers in a column?

I have a large database of phone numbers. some are 10 digits, and some are
only 7. I need all numbers that are 7 digits to have the same area code
added to the front. Is there a way to do this other than manually?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How do I add digits to all numbers in a column?

What format are the phone numbers in?

Show us both a 10 digit number and a 7 digit number.

--
Biff
Microsoft Excel MVP


"MysticalWaters79" wrote in
message ...
I have a large database of phone numbers. some are 10 digits, and some are
only 7. I need all numbers that are 7 digits to have the same area code
added to the front. Is there a way to do this other than manually?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default How do I add digits to all numbers in a column?

I would create a new column with the new numbers in them. How you convert
them depends on how your numbers are store. If they are straight text, you
can use something like:
=if(len(a1)=10,A1,"306"&a1)

If they have some other format, you can adapt the above, or post back with
details.

Regards,
Fred


"MysticalWaters79" wrote in
message ...
I have a large database of phone numbers. some are 10 digits, and some are
only 7. I need all numbers that are 7 digits to have the same area code
added to the front. Is there a way to do this other than manually?


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
how to extract digits from a row of numbers preydd Excel Worksheet Functions 2 September 3rd 08 04:32 PM
How to force numbers to just 2 digits, not 15 ? Mark246 Excel Discussion (Misc queries) 5 April 4th 08 09:41 PM
How do I display numbers of 12 digits or more? Jaxboo Excel Discussion (Misc queries) 4 November 20th 07 07:00 PM
Sorting numbers with differing numbers of digits Trudy Excel Discussion (Misc queries) 5 March 4th 06 12:31 PM
counting digits, not numbers nebb Excel Worksheet Functions 4 January 24th 06 04:10 PM


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

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

About Us

"It's about Microsoft Excel"