+ Reply to Thread
Results 1 to 6 of 6

Removing characters from a string

  1. #1
    Registered User
    Join Date
    11-26-2020
    Location
    Miami
    MS-Off Ver
    18
    Posts
    13

    Removing characters from a string

    I have a column of cells with addresses some of which have ℅ in front of the address. I want to remove all letter characters from left to right up until the first number(which is the street number)

    Here are some examples. There are different amounts of characters and spaces before the first number.

    I'd like a formula to do this. Thanks alot!

    C/O RONALD RATTRAY
    4038 S SHADE AVE, SARASOTA, FL, 34231-4630

    C/O RONALD K MC KINNEY
    648 ROCKAWAY PKWY, BROOKLYN, NY, 11236-1318

    C/O RON & BETTY REED
    5400 COLLINS LAKE RD APT1207, JACKSONVILLE, FL, 32244

    C/O ROMAN M WHITT
    6327 S INGALLS ST, LITTLETON, CO, 80123-3846

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Removing characters from a string

    Try this:

    =REPLACE(A1,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1,"")

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Removing characters from a string

    Or if (as in your description) the extra stuff is on a separate line:

    =IFERROR(MID(A1,SEARCH(CHAR(10),A1)+1,255),A1)

    BtW, it is ALWAYS better to attach a sample sheet, instead of dropping text into the thread... as the Forum often messes up the formatting.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    11-26-2020
    Location
    Miami
    MS-Off Ver
    18
    Posts
    13
    Quote Originally Posted by Phuocam View Post
    Try this:

    =REPLACE(A1,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1,"")
    That works great thanks so much

  5. #5
    Registered User
    Join Date
    11-26-2020
    Location
    Miami
    MS-Off Ver
    18
    Posts
    13

    Re: Removing characters from a string

    How to I show this thread is solved? Sorry for the dumb question.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Removing characters from a string

    Immediately above your first post in this thread... "Thread Tools" last option.

+ 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. Removing first and last two characters of a string
    By Cooltold in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2018, 02:07 PM
  2. Removing Everything before Specific String of Characters
    By mcgonma in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2018, 11:47 AM
  3. [SOLVED] Removing duplicate characters from string
    By RaydenUK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2015, 02:49 PM
  4. removing/extracting characters from a string
    By The Monitor in forum Excel General
    Replies: 1
    Last Post: 11-30-2011, 06:19 PM
  5. removing first and last characters of a string
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2011, 09:45 AM
  6. Removing first three characters in a string - vb code
    By vivekdevkar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2010, 09:10 AM
  7. Removing Characters From a String of Numbers.
    By Chunkmonki in forum Excel General
    Replies: 1
    Last Post: 09-27-2006, 04:41 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