+ Reply to Thread
Results 1 to 3 of 3

comparing cells in mail merge

  1. #1
    Registered User
    Join Date
    02-09-2022
    Location
    SAVANNAH, GA
    MS-Off Ver
    16.57
    Posts
    2

    comparing cells in mail merge

    Hi, I have an Excel spreadsheet that I want to perform a mail merge with. The problem is that if there are entries with the same address I want to send only one document to that address. So I started a new spreadsheet and have been trying to do an if statement that compares the addresses and if they're the same, copy the first name, last name, address, etc. For example I have

    A. B. C. D. E. F
    Bob, Jones, 6 Main St., City, State, Zip
    Sue, Jones, 6 Main St., City, State, Zip
    Harry, Smith, 3 Carpenter, City, State, Zip
    Betty, Edwards, 2 Campbell Ave, City, State, Zip

    if(c1=c2,a1) and so on

    I would like the new spreadsheet to include Bob and Sue because they have the same address but not Harry or Betty.

    Bob, Sue, Jones, 6 Main St., City, Stat, Zip

    Is this possible? I might be a bit over my head with this project!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: comparing cells in mail merge

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-09-2022
    Location
    SAVANNAH, GA
    MS-Off Ver
    16.57
    Posts
    2

    Re: comparing cells in mail merge

    Thank you, Glenn,I'm new to this!

    I'll attach the spreadsheet and a copy of the letter.
    I want to compare the address and if it's the same send the attached letter. If they're not the same, skip
    that row and compare the next two rows.
    Attached Files Attached Files

+ 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. Mail Merge - Create separate Mail merge pdf for each sheets of an excel file
    By sureshbvs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2021, 12:38 PM
  2. Replies: 13
    Last Post: 01-21-2020, 06:21 AM
  3. Replies: 0
    Last Post: 01-05-2015, 07:35 AM
  4. Formatting cells in mail merge doc
    By lukestkd in forum Word Formatting & General
    Replies: 4
    Last Post: 02-24-2014, 06:36 PM
  5. Replies: 0
    Last Post: 11-03-2012, 06:11 PM
  6. Replies: 2
    Last Post: 07-12-2012, 08:11 PM
  7. mail merge subject to colour of cells
    By screamh in forum Excel General
    Replies: 2
    Last Post: 08-03-2010, 08:13 AM

Tags for this Thread

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