+ Reply to Thread
Results 1 to 3 of 3

Removing Text from numbers

  1. #1
    Registered User
    Join Date
    10-16-2003
    Location
    Nebraska
    Posts
    2

    Removing Text from numbers

    I currently have a column formatted as text that includes numbers and text. Example
    25tn
    12.34tn
    16.8tn
    All of the entries end in "tn" which is what I want to remove. I also then need to format the column as a number.
    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    kdeal,

    Select the range say A1:A3 for your sample data. Click Ctrl+H. Put in "tn" in the Find option and nothing in the Replace with option. Click replace all. This will remove the "tn" from the data. To then convert to a number type a 1 in a blank cell. Copy the 1. Select your range again and go to Paste Special and select Multiply. This will convert to numbers.

    HTH

    Steve

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Or you could try a helper cell. E.g Data in Col A starting at A1 then enter this in B1 and drag down

    =SUBSTITUTE(TRIM(A1),"tn","")

    VBA Noob

+ Reply to Thread

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