+ Reply to Thread
Results 1 to 3 of 3

Need help with text extract formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Need help with text extract formula

    Hello,

    Could anyone help me with a formula to break this string out into three columns:

    String:
    aberdeen (south dakota, united states)
    Desired Output:

    column a: aberdeen
    column b: south dakota
    column c: united states


    thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need help with text extract formula

    With
    A1: your sample text: aberdeen (south dakota, united states)

    These regular formulas parse the text into 3 columns
    City
    A2: =TRIM(LEFT(A1,FIND("(",A1)-1))
    State
    B2: =TRIM(MID(LEFT(A1,FIND(",",A1)-1),FIND("(",A1)+1,LEN(A1)))
    Country
    C2: =TRIM(SUBSTITUTE(MID(A1,FIND(",",A1)+1,LEN(A1)),")",""))
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Need help with text extract formula

    Ron,

    Yes that's great! Thanks

+ 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] Need help with text extract formula
    By SEMMatt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-10-2014, 01:56 PM
  2. [SOLVED] Extract text from a string of text (amend formula to include new criteria)
    By robertguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 04:53 PM
  3. [SOLVED] Help with a formula to extract text
    By SEMMatt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2012, 11:10 AM
  4. how to extract text from a formula
    By wb in forum Excel General
    Replies: 0
    Last Post: 09-19-2005, 03:05 PM
  5. Can I extract text as a value from a formula?
    By Amy O in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-07-2005, 07:06 PM

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