+ Reply to Thread
Results 1 to 6 of 6

Cleaning up address list, some are single cells, some are double

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    OKC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cleaning up address list, some are single cells, some are double

    First of all, hello to everyone on the forum!

    My problem has to do with an list of over 22,000 addresses (don't want to think about going through it manually )

    The names are in column A and the addresses are in column B. The problem is, is that some of the addresses fit in one cell and others are spread over two (Oklahoma City, OK in one cell, 73034 in the one below it, for example.)

    The names with corresponding addresses taking up two squares have been placed in merged cells, so that they line up with their addresses. Here is a picture below.

    Capture.PNG

    What I need is each address in one cell next to its address in one cell (to make it searchable, etc.) I thought I was being really clever when I copied Column A, then pasted the formatting onto Column B (so that the cells would be 1:1, one name cell, one address cell) but didn't realize I would be losing the information in the cells being merged.

    Is there any way to solve this?

    Thank you

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Cleaning up address list, some are single cells, some are double

    You may be able to do it with a formula or you may need VBA.

    I suggest that you post a sample workbook rather than a picture of it.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    OKC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Cleaning up address list, some are single cells, some are double

    Thanks for the help!
    Here's a sample workbook to clarify.

    ExcelForum Example.xlsx

  4. #4
    Registered User
    Join Date
    09-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    9

    Cool Re: Cleaning up address list, some are single cells, some are double

    Wrote a simple formula.

    Just unmerge all the cells in column A

    Then use my formula
    Attached Files Attached Files
    Last edited by poorcloud; 03-07-2013 at 05:58 AM.

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    OKC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Cleaning up address list, some are single cells, some are double

    That is simple and perfect. Needed another pair of eyes. Thanks a lot!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Cleaning up address list, some are single cells, some are double

    And my variation on a theme:

    =IF(AND(A1<>"",A2<>""),B1,IF(AND(A1<>"",A2=""),B1& " " & B2,""))

    and drag down.

    Copy and Paste Special | Values then filter and delete blanks in column A (or, with my formula, in the new address column)

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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