I have a spreadsheet with phone numbers in the format of (111) 222-3333. I need to convert them all to 1112223333. Any Ideas?
I have a spreadsheet with phone numbers in the format of (111) 222-3333. I need to convert them all to 1112223333. Any Ideas?
Can't you re-format them as general?
HAve you tried to set general format to all your number? I think i must work for you.
Last edited by contaminated; 01-14-2010 at 01:51 PM.
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
Hi Rminner, and welcome to the forum. Two quick functions that should work, as long as they're all formatted the same:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"(",""),")","")," ",""),"-","")
or
=MID(A1,2,3)&MID(A1,7,3)&RIGHT(A1,4)
Hope that helps!
Last edited by Paul; 01-14-2010 at 01:51 PM.
If the cells are simply custom formatted to show the symbols, then setting the format back to General would work. However, my guess is that the cells actually contain those characters which need to be removed. Changing the format to General wouldn't do anything in that case.
Thanks the substitute function worked perfectly.
Welcome to the Forum, unfortunately:
Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks