+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    04-07-2009
    Location
    Kildare, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    10

    Mail merge grouping help

    I currently have a set of names and addresses that I want to send christmas cards too

    At present I have every member of the household listed but I was wondering if it was posibble to group each household instead of sending the card to everyone.

    My table looks like this:

    Callan, Cxxxy, Wayside, Ardrxxxgh, Athy, Co.Kilare, The Callan Family
    Callan, Lxxm, Wayside, Ardxxxgh, Athy, Co.Kilare, The Callan Family
    Callan , Mxxxt, Wayside, Ardxxxgh, Athy, Co.Kilare,The Callan Family

    I'd probably need to group by "The Callan Family" colum where The address column "Wayside" is equal

    Just not sure how to do that in mail merge

    Any help would be great

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Mail merge grouping help

    Hi,

    I'm not too sure that could be done in Mail Merge. It might be easier to manipulate the table with the source data. Is the source table in Excel? If so, post a data sample with dummy names and we'll probably find a way to remove duplicate family entries.

    hth
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Registered User
    Join Date
    04-07-2009
    Location
    Kildare, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Mail merge grouping help

    I've attached a sample as requested
    Attached Files Attached Files

  4. #4
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Mail merge grouping help

    Hi, had a little think and messed around with advanced filter to no avail, when it hit me:

    include a header in Row 1
    insert a new column H at the end, label "include"
    put this formula in H2 and copy down

    =IF(CONCATENATE(A2,C2,D2,E2,F2,G2)=CONCATENATE(A1,C1,D1,E1,F1,G1),"","yes")

    this will concatenate all the columns except for the first name and compare it with the one above. If it is different from the info one row above, it will print a "yes" in the include column.
    The prerequisite for this to work is that you have it all nicely sorted in the order

    column A ascending, then column C ascending.

    Make sure to ignore column B as a secondary sort order, so the families sit together nicely.

    Now in Word, you can specify to mail merge only records with a "yes" in column "include". To do that
    - click Edit recipient list in step 3 of the mail merge wizard
    - scroll right till you see the inclulde column
    - click the drop-down in the include column and select Yes
    - click OK

    continue with the merge ...

    will that work for you?

    see attached
    Attached Files Attached Files
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  5. #5
    Registered User
    Join Date
    04-07-2009
    Location
    Kildare, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Mail merge grouping help

    That worked!!

    I have one more problem, Is it possible to Concatonate the address again but if there are different surnames at the address put a "YES" in the column

    For Example:

    Davis, Elth, 18 Bar Bi,Assy, Co.Kissre,The Davis Family
    O'Rourke, Elih, 18 Bar Bi, Assy,Co.Kissare, The O'Rourke Family

    I'd like the column I'm inserting the formula into to say YES for these two

  6. #6
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Mail merge grouping help

    Well, have a look at the concatenate formula and see how easy it is to combine the columns you need for a comparison. Then just sort your data and amend the concatenate formula to suit your needs.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

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.2.0