+ Reply to Thread
Results 1 to 3 of 3

Separating character cells with a specific rule

  1. #1
    Registered User
    Join Date
    08-12-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    18

    Separating character cells with a specific rule

    Hello All,

    I have a large set of Addresses in a similar format where it has Country name in the last. I want to just write a formula in order to just separate the Country name from the whole address.
    Please look at a sample below of what I am looking for.

    ADDRESSES
    North Front Street, New Ulm, Brown County, Minnesota, 56073, United States of America
    Janice McTighe Centre, 2050, 21 Street NE, Vista Heights, Calgary, Census Divsion No. 6, Alberta, T2E 6S5, Canada
    West Little York Road, Satsuma, Harris County, Texas, 77040, United States of America
    Walker Drive, Grahamsville, Woodhill, Brampton, Peel Region, Ontario, L6T 5M3, Canada
    Walker Drive, Grahamsville, Woodhill, Brampton, Peel Region, Ontario, L6T 5M3, Canada
    Walker Drive, Grahamsville, Woodhill, Brampton, Peel Region, Ontario, L6T 5M3, Canada
    Sterling Drive South, Sterling Heights, Macomb County, Michigan, 48312, United States of America
    Conestoga Boulevard, City of Cambridge, Regional Municipality of Waterloo, Ontario, N1R 6J8, Canada


    So, I am looking to extract All the countries in the next column. All the countries are after the last 'Comma' in the cells.

    Thank you in advance.

    best regards

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Separating character cells with a specific rule

    assuming your data starts in A1 and goes down, put this formula in B1 and drag down.

    =TRIM(RIGHT(A1,LEN(A1)-FIND("+",SUBSTITUTE(A1,",","+",LEN(A1)-LEN(SUBSTITUTE(A1,",",))))))
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Separating character cells with a specific rule

    Glad it worked, thanks for the Rep

+ 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] Counting a specific character string in a range of cells.
    By juansalix in forum Excel General
    Replies: 3
    Last Post: 11-18-2019, 10:02 AM
  2. Assimilating an OCR (optical character recog) into specific cells
    By sif7161 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2019, 12:35 PM
  3. [SOLVED] how is separating the word to character ?
    By exce-llover in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-07-2017, 02:57 AM
  4. [SOLVED] Conditional formatting formula bar character limit & new rule problem
    By dhruti85chavda in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2015, 06:27 PM
  5. Replies: 4
    Last Post: 07-30-2015, 11:28 AM
  6. Adding cells if they contain specific character/digit
    By happynoodleboy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2013, 07:05 AM
  7. [SOLVED] highlight/color cells with specific character inside
    By markx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2005, 06:05 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