+ Reply to Thread
Results 1 to 2 of 2

Removing Line Breaks In A Cell:details within a range of cells

  1. #1
    Registered User
    Join Date
    09-18-2006
    Posts
    13

    Removing Line Breaks In A Cell:details within a range of cells

    Hi guys,

    I have some address details within a range of cells that are in the following format:-

    10 Birch Avenue
    Smithford
    Anytown
    West Midlands

    ... for example



    I need to change this information so its all on 1 line, with a comma between each part:-

    10 Birch Avenue, Smithford, Anytown, West Midlands


    Cheers
    Rich

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning BladeUK

    Not fully tested this but it seems to work OK.
    Please Login or Register  to view this content.
    It works for 4 line addresses, thus (say your address is in cell A1) :
    =GetAddress1(A1,1) for line 1
    =GetAddress1(A1,2) for line 2 etc up to line 4

    You'll need to extend the code above to take account of 5 line addresses.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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