#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default removing characters

Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but the
number.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 355
Default removing characters

Without a macro you can use Find and replace. Enter the character you want
to delete in the Find field and leave the Replace field blank.



"DEI" wrote:

Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but the
number.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 158
Default removing characters

On Apr 29, 3:14*pm, "DEI" wrote:
Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? *I have some phone numbers I need to remove everything but the
number.


You can do it by selecting the column that contains the phone numbers,
or at least all the cells that contain phone numbers, then use the
Replace function from the edit menu. Type a space in the find field,
and leave the replace field blank; click Replace All. You can do this
with the other characters as well - put them in the find field and
leave the replace field blank (not even a space). If it prompts you to
search the rest of the worksheet, click NO, otherwise it will remove
spaces or parenthesis from all of your data.




Steven
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default removing characters

hey! I used find/replace and got rid of the parenthesis. Now I just need
to remove the space from 123 4567

"DEI" wrote in message
...
Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but
the number.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default removing characters

Hi
No macro needed, use Find/Replace.

Select target range.

Goto Edit Find Check Replace In the Find Field enter left or right
paranthes or space in Replace Field enter nothing Replace all.

Regards,
Per

"DEI" skrev i meddelelsen
...
Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but
the number.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default removing characters

Same procedure.

DEI wrote:

hey! I used find/replace and got rid of the parenthesis. Now I just need
to remove the space from 123 4567

"DEI" wrote in message
...

Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but
the number.





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 355
Default removing characters

Just hit SPACE bar in find

"DEI" wrote:

hey! I used find/replace and got rid of the parenthesis. Now I just need
to remove the space from 123 4567

"DEI" wrote in message
...
Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but
the number.




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default removing characters

worked like a champ guys! Thanks a million!

"Per Jessen" wrote in message
...
Hi
No macro needed, use Find/Replace.

Select target range.

Goto Edit Find Check Replace In the Find Field enter left or right
paranthes or space in Replace Field enter nothing Replace all.

Regards,
Per

"DEI" skrev i meddelelsen
...
Anyone have a macro that will remove spaces (no matter where) and remove
parenthesis? I have some phone numbers I need to remove everything but
the number.




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
Removing characters Maksko Excel Discussion (Misc queries) 8 November 3rd 06 11:26 AM
Removing characters Maksko Excel Discussion (Misc queries) 7 October 19th 06 02:26 PM
Removing characters Tomsriv Excel Worksheet Functions 2 August 14th 06 11:54 PM
Removing unwanted characters Richard Excel Discussion (Misc queries) 2 June 23rd 06 07:34 PM
removing some of the characters from a cell Patience Excel Discussion (Misc queries) 2 May 3rd 05 08:28 PM


All times are GMT +1. The time now is 05:24 PM.

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"