+ Reply to Thread
Results 1 to 3 of 3

Dividing up cells

  1. #1
    Registered User
    Join Date
    11-07-2005
    Posts
    45

    Dividing up cells

    Hi All

    I have a cell with the following text

    251 High St Kangaroo Flat VIC 3555

    Using a formula How to i divide it up at the thrid word so that in one cell is

    251 High St
    and in the other is
    Kangaroo Flat VIC 3555

    I have a lot of address and need to mail merge them into word

    Thanks

    Andrew

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    One method,

    =LEFT(A1,FIND(" ",MID(A1,(FIND(" ",MID(A1,FIND(" ",A1)+1,99))+FIND(" ",A1)+1),99))+FIND(" ",MID(A1,FIND(" ",A1)+1,99))+FIND(" ",A1)-1)

    =MID(A1,FIND(" ",MID(A1,(FIND(" ",MID(A1,FIND(" ",A1)+1,99))+FIND(" ",A1)+1),99))+FIND(" ",MID(A1,FIND(" ",A1)+1,99))+FIND(" ",A1)+1,99)

    but I would doubt that all of your addresses would split evenly on 3 words, so you will need to examine your data.


    Quote Originally Posted by koba
    Hi All

    I have a cell with the following text

    251 High St Kangaroo Flat VIC 3555

    Using a formula How to i divide it up at the thrid word so that in one cell is

    251 High St
    and in the other is
    Kangaroo Flat VIC 3555

    I have a lot of address and need to mail merge them into word

    Thanks

    Andrew
    Last edited by Bryan Hessey; 04-05-2006 at 03:27 AM.

  3. #3
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    you could look for words like street, drive, road, avenue, way, close, and use these to decide where to split your address field.

+ 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