+ Reply to Thread
Results 1 to 2 of 2

separate text and numbers

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2003
    Posts
    1

    separate text and numbers

    I need help creating a formula to separate the text from the numbers into 2 separate columns.

    Examples are:
    A1= WILLIAM E 68 DIMICK ST APT 3 01 VOLK 42.50
    A2= JONITA ARAUJO 129 PERKINS ST #2 01 HOND 37.50
    A3= QIANGWEI 8 MORTON ST APT 3 03 TOYT 47.50

    The 'Text to Column' function does not work because the formatting is not consistence. What I would like is a formula that separates out the text before the FIRST numeric number. So the end result would look like:

    A1: WILLIAM E B1: 68 DIMICK ST APT 3 01 VOLK 42.50
    A2: JONITA ARAUJO B2: 129 PERKINS ST #2 01 HOND 37.50
    A3: QIANGWEI B3: 8 MORTON ST APT 3 03 TOYT 47.50

    Is there a way to create a formula that will either search or find the first number in the string and let that be the deliminater?

    Thanks, K

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: separate text and numbers

    In B1:

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

    in C1:

    =TRIM(SUBSTITUTE(A1,B1,""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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