+ Reply to Thread
Results 1 to 5 of 5

find first number in a cell and move that number and all following text to the next column

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    find first number in a cell and move that number and all following text to the next column

    I posted this a few days ago, but I couldn't reply to the thread, so I'm trying this again.

    I need to find the first number in a cell and move all the text following that number (including that number) to the next column over.

    For example:

    This text would be in the cell:
    Acme Logging Company 22288 Redwood Street Acmeville, FL

    I need to move 22288 Redwood Street Acmeville, FL to the next column over

    TIA

  2. #2
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: find first number in a cell and move that number and all following text to the next co

    I hope this will help you
    =MID(A1,MATCH(1,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)*1)*1,0),LEN(A1)+1-MATCH(1,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)*1)*1,0)) ---- CSE

    Resut is : 22288 Redwood Street Acmeville, FL

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: find first number in a cell and move that number and all following text to the next co

    a variation on this...
    =RIGHT(A10,LEN(A10)-SEARCH(LOOKUP(99^99,--("0"&MID(A10,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A10&"0123456789")),ROW(1:10000)))),A10,1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: find first number in a cell and move that number and all following text to the next co

    formula array CSE
    =MID(A1;MIN(IF(ISNUMBER(--MID(A1;ROW(1:100);1));ROW(1:100)));LEN(A1))

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: find first number in a cell and move that number and all following text to the next co

    =MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),255) should do
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    07-14-2011
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: find first number in a cell and move that number and all following text to the next co

    Thanks for the help. Just what I was looking for. You guys rock!

+ 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