+ Reply to Thread
Results 1 to 4 of 4

Remove All Characters except numbers from one column only.

  1. #1
    Registered User
    Join Date
    06-03-2015
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    6

    Remove All Characters except numbers from one column only.

    Hi,

    I have a worksheet that I need to remove text from but leave numbers:

    Cell C4 contains the following text:
    Supermarket 328 Chicago, Il

    and I just want it to say "328"

    and to do the same for the entire column C.

    So I need to select Column C, Search for each character not associated with 0-9 and remove it.
    The last macro I wrote would remove all non-numeric characters from the entire worksheet, not just my one column.

    Any help would be great.

    Thanks

  2. #2
    Registered User
    Join Date
    06-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: Remove All Characters except numbers from one column only.

    Hi tdal,
    Here is some code shamelessly stolen from the internet that should do the trick.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,525

    Re: Remove All Characters except numbers from one column only.

    Tom Urtis has a good macro here in Post #6:
    http://www.mrexcel.com/forum/excel-q...rs-string.html

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

    Re: Remove All Characters except numbers from one column only.


+ 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 Text from Cell with Mixed Characters, Sum Remaining Numbers
    By eugeniusjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2013, 12:08 AM
  2. [SOLVED] remove spaces (special characters) after numbers
    By fareastwarriors in forum Excel General
    Replies: 13
    Last Post: 11-04-2012, 09:25 PM
  3. Remove Last 2 Characters in a Column of Data
    By helpjw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2011, 04:52 PM
  4. Replies: 5
    Last Post: 08-21-2011, 09:10 AM
  5. Copy column but remove last few characters
    By shmee150 in forum Excel General
    Replies: 3
    Last Post: 03-04-2009, 09:06 AM

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