Results 1 to 12 of 12

Separate text from numbers

Threaded View

  1. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Separate text from numbers

    how many are you likely to need?
    here is a (not very efficient udf )that will extract all numbers into one cell .then copy paste special values then split with text to columns
    use as =remove_text(a1) and drag down

    Function Remove_text(Rng As String) As String
    Dim Tmp As String
    Dim i As Integer
    Dim x As Integer
    
    
    Tmp = Rng
    For i = 1 To 47
    Tmp = Application.Substitute(Tmp, Chr(i), " ")
    Next i
    For x = 58 To 255
    Tmp = Application.Substitute(Tmp, Chr(x), " ")
    
    Next x
    Tmp = Application.Trim(Tmp)
    
    Remove_text = Tmp
    End Function
    Last edited by martindwilson; 02-10-2010 at 11:12 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1