Results 1 to 3 of 3

Thread: Remove Numerics From Text

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Remove Numerics From Text

    NOT AVAILABLE 1,25 6,68

  2. #2

  3. #3
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    13
    Quote Originally Posted by Admin View Post
    One way would be

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

    I assume that no other text will be there after the numerics.
    For the given example, your formula would leave a trailing blank space in the returned value. Assuming collapsing possible multiple adjacent spaces inside the text would not be a problem, and also assuming there may or may not be a space between the last text and first digit, then wrapping your formula in a TRIM function would solve the problem...

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

    If there could be multiple adjacent internal spaces that would need to be preserved, then this array-entered** formula could be used to get rid of any trailing spaces that might result from your formula...

    =LEFT(REPLACE(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1 &"012 3456789")),255,""),MAX((MID(REPLACE(A1,MIN(FIND({0 ,1,2,3,4,5,6,7,8,9},A1&"012 3456789")),255,"")&REPT(" ",255),ROW($1:$255),1)<>" ")*ROW($1:$255)))

    **Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself

Similar Threads

  1. Remove UserForm's TitleBar And Frame
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 7
    Last Post: 06-04-2020, 04:48 AM
  2. Remove Special Characters From Text Or Remove Numbers From Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 5
    Last Post: 05-31-2013, 04:43 PM
  3. Remove only numeric value in the end of any string
    By LalitPandey87 in forum Excel Help
    Replies: 3
    Last Post: 04-08-2012, 09:39 AM
  4. Remove Special Characters :
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 3
    Last Post: 03-06-2012, 09:41 PM
  5. Remove Zero / Zeroes From Alphanumeric Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 04-04-2011, 01:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •