+ Reply to Thread
Results 1 to 4 of 4

Macro to Delete only Alpha Strings but not Alphanumeric or Numeric Strings in a Cell

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro to Delete only Alpha Strings but not Alphanumeric or Numeric Strings in a Cell

    Hi There,

    I require a macro that will delete all the strings in a cell that consist only of Alpha characters.

    E.g.
    I have a list of data in column A as per below

    1 x 123ABC Washing Machine
    2 x 234BCD Dish Washer
    3 x 345CDE Refrigerator

    I would like to remove that data that only consists of all text, so that the above strings would look like below.

    1 123ABC
    2 234BCD
    3 345CDE

    Any assistance would be much appreciated.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Macro to Delete only Alpha Strings but not Alphanumeric or Numeric Strings in a Cell

    Would it be safe to say, you want to keep the string between the 2 spaces?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Macro to Delete only Alpha Strings but not Alphanumeric or Numeric Strings in a Cell

    Assuming the data in col.A
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Macro to Delete only Alpha Strings but not Alphanumeric or Numeric Strings in a Cell

    How about this function:

    Please Login or Register  to view this content.
    use it as any other function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Where you have range and delimiter (in your case space).
    if no delimiter space will be default so
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will work too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Remove only numeric strings from a value in the cell
    By pgft in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-02-2015, 01:29 PM
  2. Extract Unique and Sort Array of Alpha (strings) and Numeric (longs)
    By cmore in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-14-2013, 01:34 PM
  3. Extracting required strings from alpha numeric value in a row in excel
    By piggyfox in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-31-2013, 04:42 PM
  4. Macro Sort Alphanumeric Strings Row by Row
    By jpedges38 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2012, 09:35 AM
  5. Macro to delete alpha and alpha numeric values
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2011, 09:13 AM
  6. summing numeric parts of alphanumeric strings
    By acls2x in forum Excel General
    Replies: 6
    Last Post: 11-18-2009, 10:33 AM
  7. Extract Numeric and Alpha strings from Alphanumeric String
    By Gos-C in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2007, 07:34 PM

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