+ Reply to Thread
Results 1 to 9 of 9

Splitting Merged Data

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

    Splitting Merged Data

    Hi I have a file of about 7k rows where for some reason the Street and City got merged together, and i'm trying to find a way to split them up so i can have Street address and city on 2 separate columns

    Here are some examples (so you can see how they differ one from another and reason i cannot use text to columns)

    106 1/2 N Harbor BlvdFullerton
    607 S Hill St Ste 304 (3rd Floor)Los Angeles
    10343 E County Highway 30A Unit 111Panama City Beach
    364 E Palmetto Park Rd Ste 3Boca Raton
    8222 13th AveBrooklyn
    711 3rd St S Ste 2Jacksonville Beach

    I would appreciate any help someone can propose, I can't do it manually on 7k rows


    Thank you in advance

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Splitting Merged Data

    Withdrawn by FR.
    Last edited by FlameRetired; 03-26-2015 at 06:28 PM.

  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
    53,044

    Re: Splitting Merged Data

    Hi, welcome to the forum

    wow that data sure is a mess Where is it coming from?
    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
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Splitting Merged Data

    Without the outrageous good fortune of a lookup table of valid city names I would have no idea how to do this. With such a lookup table in H1:H6 this formula in B1 and copied down and across column C would work.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I've attached a sample file of what I'm talking about.

    BTW: Some second thoughts. If one of your cities is not on the lookup list but is a partial match you could get some incorrect results with this approach.
    Attached Files Attached Files
    Last edited by FlameRetired; 03-26-2015 at 07:15 PM.

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

    Re: Splitting Merged Data

    Wow tyvm for the clear example and explanations FR
    If I can find a list it will be very useful.

    Quick question on an idea I just had, one of the common element in all those addresses is the fact that there is always a lowercase or number followed by an Upper case.
    Is it possible to insert a comma in between those 2 characters via formula every time one of those 2 possibility happens?
    Or worse case even conditionally Highlight the word containing it?

    Let me know and thank you very much for your help

    UPDATE #2
    I did find a pretty good list of all US cities, and your formulas worked, the only issue I have is many street names are also city names, or cities like York , would split it New York...
    For a worse case solution it's great , but let me know if you think idea on top is doable pls
    Last edited by kennyfromcs; 03-26-2015 at 09:10 PM. Reason: update

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Splitting Merged Data

    Thanks for the feedback.

    Glad you found a list. Yes on the duplicates. I never thought about streets having the same names as cities.....just partial matches on cities.

    The idea you ask about is a good one.....if I only knew how to implement it. I don't. I looked for other patterns but found none.

    In another vein and as an afterthought, there is a simpler pair of formulas I thought of to replace the one I uploaded.

    In C1 this formula copied down column C
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then in B1 and copied down column B
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Both much easier on the eyes.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Splitting Merged Data

    Quote Originally Posted by FlameRetired View Post
    .........The idea you ask about is a good one.....if I only knew how to implement it. I don't. I looked for other patterns but found none...........
    I have now. The reworked WB is attached. I had to build a reference range using your idea.......it works. The reference range (26 columns x 38 rows) includes the characters preceding the first letter of city names. As you add to that update the reference range (it's a concatenating formula) and the parsing formula.

    The formula array-entered into C1 and filled across and down column D is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Array enter means the formula must be committed by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    I duplicated your sample data enough times to make more than 7K rows. It took about 4 seconds to calculate. If you need to update the lookup reference range that formula took my machine about 10 seconds to calculate.

    I was pleasantly surprised to find that this works and much better than the cities lookup approach.
    Attached Files Attached Files

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

    Re: Splitting Merged Data

    Yes this Array works amazingly well

    You guys rock! The community in this forum seems amazing. 2 post I made so far and on both I got such great help, that I'm actually starting to gain back faith in humanity :D

    I hope to be able to give back as well very soon

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Splitting Merged Data

    Glad it helped. Thanks for the feedback.

+ 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: 0
    Last Post: 11-25-2014, 07:08 AM
  2. Limit merged cell data; Place excess into next merged cell down
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 10:35 PM
  3. Copying data from merged cell into all resulting cells after splitting
    By swati hira in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2013, 02:42 AM
  4. Copying data from merged cell into all resulting cells after splitting
    By kwing in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2012, 10:24 PM
  5. Splitting merged cells & duplicating and distributing content
    By lauren.rogers in forum Excel General
    Replies: 0
    Last Post: 04-19-2011, 11:30 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