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