+ Reply to Thread
Results 1 to 8 of 8

Help to split words with specific condition

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    Montreal
    MS-Off Ver
    2007
    Posts
    7

    Help to split words with specific condition

    Hi 'm trying to see if someone can help me find way to split any word in a cell that contains one of the following condition:

    -a lowercase letter followed immediately by an uppercase letter, to insert a "," in between those 2 letters

    -a Number Followed immediately by an uppercase letter, to insert a "," in between those 2 letters

    Examples:


    4125 Blackhawk Plaza Circle Suite 100Danville would become 4125 Blackhawk Plaza Circle Suite 100,Danville
    572 Route 303Blauvelt would become 572 Route 303,Blauvelt
    353 Bleecker StNew York would become 353 Bleecker St,New York


    Any idea would be greatly appreciated , I have to do this on 7k rows

    Thank you in advance,

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help to split words with specific condition

    try this macro:
    Please Login or Register  to view this content.
    The macro is programmed to look at all cells in column A starting at cell A1. Change that to fit your data.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    301

    Re: Help to split words with specific condition

    Just a comment here. If this is headed to a mailing list, the Post Office does not want any commas in the address. Actually, no punctuation at all and they prefer the entire address in uppercase.

    http://pe.usps.com/businessmail101/a...eryAddress.htm

  4. #4
    Registered User
    Join Date
    03-26-2015
    Location
    Montreal
    MS-Off Ver
    2007
    Posts
    7

    Re: Help to split words with specific condition

    Quote Originally Posted by p24leclerc View Post
    try this macro:
    [The macro is programmed to look at all cells in column A starting at cell A1. Change that to fit your data.
    TYVM for your help, that works great, now I just to manually fix a couple hundred instead of thousands (some split at wrong place example: 48W 48th StreetNew York would split at 48 W)

    But still a huge help

    Thx again

  5. #5
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help to split words with specific condition

    this modified macro will take care of some other specific problem as your 48W.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-26-2015
    Location
    Montreal
    MS-Off Ver
    2007
    Posts
    7

    Re: Help to split words with specific condition

    tyvm again for your help p24, even less for me to do

    And Btw I just paid attention to your Avatar.

    I'm from Quebec too! Vive Le Quebec!

  7. #7
    Registered User
    Join Date
    03-26-2015
    Location
    Montreal
    MS-Off Ver
    2007
    Posts
    7

    Re: Help to split words with specific condition

    Quote Originally Posted by Len Silva View Post
    Just a comment here. If this is headed to a mailing list, the Post Office does not want any commas in the address. Actually, no punctuation at all and they prefer the entire address in uppercase.

    http://pe.usps.com/businessmail101/a...eryAddress.htm
    Ty for the info Len, but I wanted comma to be able to do a simple text to column to have city in a separate column.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help to split words with specific condition

    Quote Originally Posted by kennyfromcs View Post

    I'm from Quebec too! Vive Le Quebec!
    You guys need to get your hockey franchise back!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 1
    Last Post: 03-02-2021, 07:33 PM
  2. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  3. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  4. Split numbers and split words
    By Oddemann in forum Excel General
    Replies: 38
    Last Post: 05-10-2009, 02:57 PM
  5. [SOLVED] Split the words
    By Kelvin Lee in forum Excel General
    Replies: 1
    Last Post: 10-10-2005, 11: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