Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Russ
 
Posts: n/a
Default how do I remove data from cells ex. (232)-555-1212 to 2325551212

how do I remove data from cells ex. (232)-555-1212 to 2325551212
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bearacade
 
Posts: n/a
Default how do I remove data from cells ex. (232)-555-1212 to 2325551212


Function NumOnly(AnyVal As String)
Dim RegEx
Set RegEx = CreateObject("vbscript.regexp")
RegEx.Global = True
RegEx.Pattern = "[^\d\s]+"
KillNonNum = RegEx.Replace(AnyVal, "")
Set RegEx = Nothing
End Function

=NumOnly(A1)


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=552748

  #3   Report Post  
Posted to microsoft.public.excel.misc
Liz
 
Posts: n/a
Default how do I remove data from cells ex. (232)-555-1212 to 2325551212

I'm sure there's a real formula, but I use the find & replace feature. Put
the character to remove (one at a time) in the Find box, leave the replace
box empty, and replace all. You have to select the column you want to
remove them from.


"Russ" wrote in message
...
how do I remove data from cells ex. (232)-555-1212 to 2325551212



  #4   Report Post  
Posted to microsoft.public.excel.misc
logan27371
 
Posts: n/a
Default how do I remove data from cells ex. (232)-555-1212 to 2325551212

That is a formatting issue right click on the cell select format cell and
then change the format to general or whatever format you want.

"Russ" wrote:

how do I remove data from cells ex. (232)-555-1212 to 2325551212

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
keeping cells aligned when data is updated vicvega Excel Worksheet Functions 0 April 4th 06 02:30 AM
renaming data labels by different cells than source data Darren Charts and Charting in Excel 4 January 12th 06 10:35 AM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM


All times are GMT +1. The time now is 06:10 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"