+ Reply to Thread
Results 1 to 4 of 4

Formula to exclude anything before first appearing number in a string

  1. #1
    Registered User
    Join Date
    08-15-2014
    Location
    Denmark
    MS-Off Ver
    365 Pro
    Posts
    94

    Question Formula to exclude anything before first appearing number in a string

    Hi there.

    I currently got a formula named =LEFT(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&1234567890))-2) with the function to exclude anything appearing after a piece of text contains a space and a number, like this:

    Starting values:
    Test 1
    Testtest 123
    Test test 123 321
    Test test 123, test test

    With current formula, it turns into:
    Test
    Testtest
    Test test
    Test test

    ... Now what I need, is a formula that does the opposite: finding the first appearing number and exclude anything BEFORE the first appearing number, like this:

    Starting values:
    Test 1
    Testtest 123
    Test test 123 321
    Test test 123, test test

    What it needs to turn into:
    1
    123
    123 321
    123, test test

    Can anyone help me out? Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to exclude anything before first appearing number in a string

    Try

    =MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&1234567890)), 200)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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

    Re: Formula to exclude anything before first appearing number in a string

    Try

    =MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&1234567890)),LEN(A1))

  4. #4
    Registered User
    Join Date
    08-15-2014
    Location
    Denmark
    MS-Off Ver
    365 Pro
    Posts
    94

    Re: Formula to exclude anything before first appearing number in a string

    Thank you! Works like a charm!

+ 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. VBA code needed: Posting three most appearing text string in a culomn
    By ehmail84 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-20-2014, 05:52 AM
  2. Sumprod formula to exclude string values
    By gberna2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2014, 06:01 PM
  3. [SOLVED] Exclude number entries from formula.
    By dzugan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2013, 01:30 PM
  4. Conditional format: mark cells with 1 text string & exclude cells with another string
    By KArnoldColumbia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 01:43 AM
  5. [SOLVED] Help - Separating numbers appearing on the right of a text string
    By Faz1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2005, 10:45 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