+ Reply to Thread
Results 1 to 7 of 7

Address Book Sort into different Columns

  1. #1
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Question Address Book Sort into different Columns

    Hi

    Need help to sort out address book details into seperate columns. I have attached an example the raw data (which always appear in same format with same gap) shown in yellow (COLUMN A) and on the right how it should be presented. The address details needs to be split (not sure how to do) which is the 1st & 2nd line can be presented with Company Name appearing in Address 1 and the address details before the 1st coma appearing in column Address 2 and the following after the 1st coma appearing in Address 3 The last comma after which the post code appears should be shown in G column.

    Either a formula or macro would do or any help to show as to how to do this. Please ask if any questions.

    Thanks
    Attached Files Attached Files
    Last edited by tek9step; 11-26-2010 at 10:13 AM.

  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
    48,132

    Re: Address Book Sort into different Columns

    Something to be going on with ...

    Formulae in Row 13:

    HTML Code: 

    Copy down, and up if you wish.

    At the moment, this doesn't split the address or the telephone/fax numbers.

    You could do this with Text to Columns, delimited by comma (,) or you can improve the formulae to split the elements out. I don't have time to do that right now ... sorry.

    Regards
    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
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,251

    Re: Address Book Sort into different Columns

    Hi tek9step,

    Find the attached with a set of string formulas on the first line of each of your addresses. Copy this formula down your page, copy and paste values only on another part of your worksheet and sort to get rid of blank rows. Hope this helps.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Re: Address Book Sort into different Columns

    Thanks Tm Shucks & Marvin P for your kind help

    Marvin if i copy down the formula there is a slight problem on the postcode i have highlighted in yellow along with other info it is capturing.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Re: Address Book Sort into different Columns

    no worry i can live that i will do it manually. thanks again
    dont play hard just play right !!!

  6. #6
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Address Book Sort into different Columns

    tek9step,

    Detach/open workbook tek9step - EF754625 - SDG15.xlsm and run the ReorgData macro.
    Attached Files Attached Files
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  7. #7
    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
    48,132

    Re: Address Book Sort into different Columns

    Sorry, it's taken me a little while to finish tinkering with your sample workbook.

    I have attached an updated version for your review.

    You should find that you can copy the formulae in row 2 down through the worksheet and you will get only one row of transcribed data for each block.

    Copy and Paste Special values to remove the formulae with "blank" content.

    Regards
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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