+ Reply to Thread
Results 1 to 7 of 7

Delet ALL text and leave only numbers

  1. #1
    Registered User
    Join Date
    09-28-2009
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Delet ALL text and leave only numbers

    I thought for sure I would be able to find the answer to this on some forum, bue I simply cannot. I need to delete all characters BUT numbers (including decimals) in my sheet. Does anyone know how I can do this? I can do it either by using the find/replace menu, or use vba. Please help!
    Last edited by apandbp; 09-28-2009 at 05:32 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Delet ALL text and leave only numbers

    Hello apandbp,

    Welcome to the Forum!

    Do you have a sample of the data or a workbook with the data that you can post?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    09-28-2009
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Delet ALL text and leave only numbers

    http://www.ideaharvesters.com/test.xls

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Delet ALL text and leave only numbers

    Give this a shot:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Delet ALL text and leave only numbers

    Hello apandbp,

    This macro has been added to the attached workbook. It will leave only valid numbers on the worksheet. Any other cell is cleared.
    Please Login or Register  to view this content.
    To Run the Macro...
    To run the macro from Excel, open the workbook, and press ALT+F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-28-2009
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Delet ALL text and leave only numbers

    Amazing. Thank you!

    Anthony

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Delet ALL text and leave only numbers

    Hello Anthony,

    If you are satisfied with the solution, please mark your post solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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