+ Reply to Thread
Results 1 to 3 of 3

How to separate digits from string of numbers (must ignore characters)

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    How to separate digits from string of numbers (must ignore characters)

    I need to separate numerical digits from string of numbers and put them in separate cells (only last 5 numerical digits starting from right). If number has "x" between them than it must ignore it and go to the next number.

    I have attached an image and also excel file to explain what I want clearly.

    Column A is the input and output is from column B to F.

    string.png
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to separate digits from string of numbers (must ignore characters)

    In B2

    =IFERROR(MID(SUBSTITUTE($A2,"x",""),LEN(SUBSTITUTE($A2,"x",""))-COLUMN(A$1)+1,1),"")

    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: How to separate digits from string of numbers (must ignore characters)

    Quote Originally Posted by Ace_XL View Post
    In B2

    =IFERROR(MID(SUBSTITUTE($A2,"x",""),LEN(SUBSTITUTE($A2,"x",""))-COLUMN(A$1)+1,1),"")

    Copy down and across
    Thank you.

+ 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] Ignore non-numeric characters in a string
    By smpita in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2014, 07:30 PM
  2. [SOLVED] How can I exctract numbers from a string of characters in a separate column ?
    By Renzo Isola in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2013, 11:15 PM
  3. [SOLVED] Separate Numbers into Digits^3
    By Sam9530130 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2012, 11:36 AM
  4. ignore last 18 characters & use as search string
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-18-2010, 12:27 AM
  5. separate-out digits from numbers
    By stewart08 in forum Excel General
    Replies: 3
    Last Post: 01-28-2010, 10:12 AM
  6. Separate characters in a string
    By viadisky in forum Excel General
    Replies: 2
    Last Post: 02-01-2006, 01:35 PM
  7. Replies: 4
    Last Post: 01-13-2006, 09:55 AM
  8. Replies: 2
    Last Post: 08-23-2005, 03:49 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