+ Reply to Thread
Results 1 to 6 of 6

separating numeric and alpha cell contents

  1. #1
    Registered User
    Join Date
    09-08-2008
    Location
    Maine
    Posts
    17

    separating numeric and alpha cell contents

    Hello,

    I have a set of text strings that have some number of alpha characters followed by some number of numeric characters. I need to separate the data into two cells.

    Example in A1-A5

    ABC123456
    AB12345
    A123456
    AA12345
    DEF123456

    Desired results in B1 - C5

    ABC 123456
    AB 12345
    A 123456
    AA 12345
    DEF 123456

    Can anyone help?
    Last edited by lintcoop; 10-10-2008 at 10:50 AM. Reason: solved

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming the format is consistent, try...

    B1, copied down:

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

    C1, copied down:

    =SUBSTITUTE(A1,B1,"")

    Hope this helps!

  3. #3
    Registered User
    Join Date
    09-08-2008
    Location
    Maine
    Posts
    17
    That worked Domenic! Thanks so much.
    I love this forum!

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    You're very welcome! Thanks for the feedback!

  5. #5
    Registered User
    Join Date
    01-02-2013
    Location
    Coppell TX
    MS-Off Ver
    Excel 2010
    Posts
    1

    Thumbs up Re: separating numeric and alpha cell contents

    Domenic - better than 4 years later, this bit of code helped me too. Now I'm prompted to study those two functions.

    Thanks,

    bax_man

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: separating numeric and alpha cell contents

    Another one...but shorter

    C1: =LOOKUP(1E99,--RIGHT(A1,ROW($1:$99)))

    B1: =SUBSTITUTE(A1,C1,)

+ 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. Need to remove some contents of a cell.
    By davidbeaton in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2008, 04:51 PM
  2. Duplicate Post >> Summing Up a column defined as Alpha Numeric
    By Ach07 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-27-2007, 04:32 PM
  3. using if then functrion with alpha numeric cells
    By JEllison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2007, 03:43 PM
  4. Replies: 1
    Last Post: 11-28-2006, 02:42 AM
  5. Finding an alpha numeric close match
    By carsto in forum Excel General
    Replies: 6
    Last Post: 11-15-2006, 10:17 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