+ Reply to Thread
Results 1 to 6 of 6

Separate numbers from characters

Hybrid View

  1. #1
    Registered User
    Join Date
    02-17-2010
    Location
    Brisbane Australia
    MS-Off Ver
    Excel 2016
    Posts
    45

    Separate numbers from characters

    Hi all,

    I have a list of numbers listed like:

    50J
    33J
    4D
    Etc.

    I would like to have them separated in two columns like
    50 J
    33 J
    4 D
    Etc.

    For the life of me, I could not find a simple way to do it! Please help!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Separate numbers from characters

    With text in A1
    In B1:
    =MAX(IFERROR(--MID(A1,1,ROW(INDIRECT("1:"&LEN(A1)))),0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    In C1:
    =SUBSTITUTE(A1,B1,"")
    Quang PT

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Separate numbers from characters

    To extract numbers enter formula in B1 and copy down

    Formula: copy to clipboard
    =LOOKUP(10^308,--LEFT(A1,ROW(A$1:A$15)))

    then in C1 and copy down

    Formula: copy to clipboard
    =SUBSTITUTE(A1,B1,"")


    v A B C
    1 50J 50 J
    2 33J 33 J
    3 4D 4 D
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Separate numbers from characters

    If each cell has only 1 letter at the end, then try

    =LEFT(A1,LEN(A1)-1)+0
    and
    RIGHT(A1,1)

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Separate numbers from characters

    You can try:
    1. VBA code
    2. B1: =regex(A1,"([0-9]{0,})([a-zA-Z]{0,})","$1")
    3. C1: =regex(A1,"([0-9]{0,})([a-zA-Z]{0,})","$2")
    Last edited by sandy666; 03-14-2016 at 10:50 AM. Reason: changed to the more universal

  6. #6
    Registered User
    Join Date
    02-17-2010
    Location
    Brisbane Australia
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Separate numbers from characters

    Solved, thank a lot everybody!

+ 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] How to separate digits from string of numbers (must ignore characters)
    By mohit999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2016, 03:12 PM
  2. Separate text numbers and characters into coulmns
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2012, 05:38 AM
  3. Separate numbers mingled with characters and text
    By hawk93 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2012, 09:13 PM
  4. Separate numbers from characters and text
    By hawk93 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2012, 01:04 PM
  5. separate characters from numbers in cell reference
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2010, 07:14 PM
  6. Separate numbers from characters separated by comma
    By hawk77EF in forum Excel General
    Replies: 6
    Last Post: 02-18-2010, 07:28 AM
  7. Separate numbers from characters that are separated by comma
    By hawk77EF in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-18-2010, 04:48 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