+ Reply to Thread
Results 1 to 2 of 2

Merging multiple rows of data into one for a mail merge

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Merging multiple rows of data into one for a mail merge

    Hello,

    I am trying to perform a word mail merge using a set of data in excel. To do this I need one row per document. However, I have more than one row of data that I need to combine into one so I can perform the merge.
    For example, in the attached spreadsheet rows 2-4 are one document, rows 5-8 are another document, and rows 9-10 are another document.

    In cell E2 I was attempting to combine the cells together.

    So what I was hoping to do is to have a macro loop through Column A and for every Cell in Column A that matches each other their rows will be combined into a single row.

    I am not sure how to do this or if this is even the best way to go about this problem. I would appreciate any ideas.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    522

    Re: Merging multiple rows of data into one for a mail merge

    Hello Glide,

    As you wait for a macro to loop through, a slight modification can help you get the desired result next to the last appearance of the unique name (Provided your column a is sorted.

    I tried the formula below in column F and it worked
    Formula: copy to clipboard
    =IF(A2<>A1,(A2&", "&B2&", "&C2&", "&D2),F1&", "&A2&", "&B2&", "&C2&", "&D2)


    Best Regards/VKS

+ 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. Replies: 5
    Last Post: 08-24-2014, 09:51 PM
  2. Mail Merging Multiple Rows One Document
    By toughiv in forum Excel General
    Replies: 1
    Last Post: 06-20-2014, 03:57 PM
  3. Replies: 8
    Last Post: 09-13-2012, 09:32 AM
  4. Microsoft Mail Merge Multiple rows from excel
    By AAAAmy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-16-2012, 08:44 PM
  5. Multiple rows, duplicate entries, mail merge
    By RHicks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2008, 07:32 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