+ Reply to Thread
Results 1 to 12 of 12

I need help to separate 3 lines of an address contained in 1 cell please

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    I need help to separate 3 lines of an address contained in 1 cell please

    Hi, I use a connection to Microsoft Business Contact Manager 2010 to import my contacts into an Excel table. al-pc_MSSMLBIZ MSSmallBusiness ContactExportView

    The address can varey from 1 to 4 lines.
    The City and Post Code are in seporate cells, which is ok.

    My problem is that the first part of the the address is contained in one cell, but is displayed on separate lines within that one cell.

    Displayed like this. Oak viewBroughall FarmBroughall

    Displays like this in the formula bar when extended downwards

    Oak view
    Broughall Farm
    Broughall

    After I refresh the table I copy new entries onto another worksheet which is very similar and manually seporate the address lines into individual cells. I would like to automate this part of the process if possible.

    Oak view Broughall Farm Broughall

    I have tried using commas etc in Business Contact Manager, and then using Left, Mid and Right formulas with no luck.
    Any help suggestion greatly appreciated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,831

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    1. Select the whole column.
    2. Open Find & Replace (Home ribbon).
    3. In the Find field, type CTRL+J (you will see a dot appear).
    4. In the Replace field, type | (pipe symbol, usually near the left-hand SHIFT key).
    5. Now use Text to Columns on the Data ribbon to separate the entries, using the | character as the delimiter.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    Hi AliGW, Thanks for you reply today.

    I followed your instructions, little dot appeared in the Find what box, | in the Replace with box, but nothing was found to replace.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,831

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    Then you will need to attach a sample workbook.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    It sounds like you are trying to remove what used to be called a carriage return. If so here is a way I used to do that...
    go to find and replace, at find hit "ctrl and enter" then at paste hit the space bar once then do replace (or replace all).
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    Hi, It has been a while since I asked this question, do I have to open a new thread or may I send you an example work sheet?
    Many thanks

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,831

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    Attach a workbook here, but you have marked the thread as solved ...

  8. #8
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    Please see attached file
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    I now have this part of your instruction working "In the Find field, type CTRL+J (you will see a dot appear). In the Replace field, type | (pipe symbol, usually near the left-hand SHIFT key).
    I couldn't get the above part working when I originally asked the question.
    In my sample worksheet with the Text to columns part, I select the range of cells to convert, go through the wizard but I only get the first line of each address.
    Attached Files Attached Files
    Last edited by A440; 03-01-2019 at 10:58 AM.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,831

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    The thread is marked as solved, which is probably why you have had no help with it! Please remove the solved tag so that members know that you require further help. Thanks.

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    From post#8

    Please try at J6 drag across and down

    =TRIM(MID(SUBSTITUTE($B6,CHAR(10),REPT(" ",99)),COLUMNS($J6:J6)*99-98,99))
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: I need help to separate 3 lines of an address contained in 1 cell please

    Hi Bo_Ry, That is exactly what I needed, Many thanks and much appreciated.

+ 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. Getting chart range from range address contained in a cell
    By Journeyman3000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2013, 08:10 PM
  2. Separate Multiple Lines in 1 Cell
    By SpanishMosca in forum Excel General
    Replies: 3
    Last Post: 12-08-2011, 08:51 PM
  3. To refer to a cell whose address is contained in a cell in another sheet.
    By kmlprtsngh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2010, 03:32 AM
  4. How to separate address now in 1 cell into 4 cells
    By Launchnet in forum Excel General
    Replies: 1
    Last Post: 09-10-2010, 12:22 AM
  5. Create Address Cell - removing blank lines
    By SpeedsIE in forum Excel General
    Replies: 2
    Last Post: 06-24-2010, 08:49 AM
  6. Separate Address from Cell
    By mpquin in forum Excel General
    Replies: 2
    Last Post: 01-26-2010, 03:50 PM
  7. one cell with multiple lines od address
    By diggad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2009, 12:19 PM
  8. separate address data in a cell
    By Joe in CT in forum Excel General
    Replies: 2
    Last Post: 03-18-2006, 10:00 PM

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