+ Reply to Thread
Results 1 to 16 of 16

Remove Numbers From Alphanumeric Cell

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    94

    Remove Numbers From Alphanumeric Cell

    In cell A1 i have the value ABC123.

    I want to remove the 123.

    Can you tell me how to do this?

    Thanks!
    Dave

  2. #2
    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
    Link may help

    http://www.excelforum.com/showthread.php?t=619035

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    no, i'm looking to delete the 123 and just leave abc

  4. #4
    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
    Try this macro. Select cells and run

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    Takes hours to run that mate. I'm working on 60,000 rows or so.

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning davehunter

    Takes hours to run that mate
    Well, you could always do it manually.

    You have to remember that just because Microsoft have given you 64,000 rows you don't have to use all of them. If you have 60,000 rows, X number of columns and Y number of sheets then maybe Access is the right tool for the job.

    Any type of macro is going to take a while to affect 60,000 rows in Excel 'cos of the way data is stored. It's a number cruncher - not a database.

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  7. #7
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by davehunter
    Takes hours to run that mate. I'm working on 60,000 rows or so.
    Select the range.
    Press Ctrl+H
    Find What: 1
    Replace With: <leave it blank>
    Press Replace All

    Then change
    Find what: 2 and press Replace All
    and so on for all numbers (i-e 3, 4, 5, 6, 7, 8 and 9).

    It will take not more than 20 seconds.

  8. #8
    Registered User
    Join Date
    04-26-2007
    Posts
    94

    IsText rather than IsNumeric

    I have a cell A1 with value ABC123.

    I have been provided with a function that will extract the numbers from this cell, and enter them as required.

    Please Login or Register  to view this content.
    In cell B1 if I enter =RemoveTexts(A1) the value 123 is left. Spot on.

    I am now trying to do the opposite.

    In C1 I want ABC to appear. Would IsText or something similar allow me to do this with the above function.

    Thanks in advance.

    Dave
    Last edited by davehunter; 10-29-2007 at 04:32 PM.

  9. #9
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try
    Please Login or Register  to view this content.
    as this is a Boolean function.
    Martin

  10. #10
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    Quote Originally Posted by mrice
    Try
    Please Login or Register  to view this content.
    as this is a Boolean function.
    Just returns 0

  11. #11
    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
    Please remember to follow the rules below by avoiding duplicate posts (Still not resolved this one) and post to the correct group

    see if this mod works for you

    Note will also be slow if used on 60000 rows

    Please Login or Register  to view this content.
    VBA Noob
    Last edited by VBA Noob; 10-29-2007 at 06:57 PM.

  12. #12
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    Quote Originally Posted by VBA Noob
    Please remember to follow the rules below by avoiding duplicate posts (Still not resolved this one) and post to the correct group

    see if this mod works for you

    Note will also be slow if used on 60000 rows

    Please Login or Register  to view this content.
    VBA Noob

    Thats brilliant thanks!

    Dave

  13. #13
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    This function can be used to extract numbers from an alphanumeric cell:

    Please Login or Register  to view this content.

  14. #14
    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
    Think you mean this does

    Please Login or Register  to view this content.
    VBA Noob

  15. #15
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    This will extract numbers i.e. keep them:

    Please Login or Register  to view this content.
    This will remove numbers i.e. keep text:

    Please Login or Register  to view this content.
    sorted

  16. #16
    Registered User
    Join Date
    04-01-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Remove Numbers From Alphanumeric Cell

    Perfect, thank you so much!

+ 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