I do mailing lists and I have to clean up the list so only one household get a mailing. I use this formula to merge first names if the last name and address are the same.
=IF(AND(D3=D2,C3=C2),B2&" AND "&B3&"", B2)
As you can see this will merge the first name, add "and" then merge the second person's first name. That leaves the second person's first name in the next row. I than have to go delete the extra row of the person not merged. I would like to create a macro that does something like this:
=IF(ISNUMBER(SEARCH("*AND*",B2)),"delete", "Keep")
but delete the next row down.
I have searched this forum and all over Google and found ways to search and delete the row of the cell, but nothing on deleting the next entire row down. I used just pull the data I needed using SQL from the Database but my business changed database companies and they don't want anybody in there.
Thank you in advance.
=IF(AND(D3=D2,C3=C2),B2&" AND "&B3&"", B2)
As you can see this will merge the first name, add "and" then merge the second person's first name. That leaves the second person's first name in the next row. I than have to go delete the extra row of the person not merged. I would like to create a macro that does something like this:
=IF(ISNUMBER(SEARCH("*AND*",B2)),"delete", "Keep")
but delete the next row down.
I have searched this forum and all over Google and found ways to search and delete the row of the cell, but nothing on deleting the next entire row down. I used just pull the data I needed using SQL from the Database but my business changed database companies and they don't want anybody in there.
Thank you in advance.