Ok, maybe not complicated for some of you, but definitely complicated for me!!
Here's a sample of the Excel data I'm working with:
FamilyName Address1 FirstName LastName Relationship Phone#
00001 1234 N Rd John Doe Father 1234
00002 5678 S Ln Jane Doe Dismissal 1 (blank)
00002 (blank) Jane Doe Mother 5678
00003 2468 W Hwy Jane Doe Grandmother 1234
So here's what I want to do... you'll notice that line 2 and 3 are duplicates. I want to run a formula or macro on this data (I have about 30,000 rows that is about 12,000 duplicates). Here's the issue, instead of just running a formula that deletes one entire row (ie; the formula identifies rows 3 and 4 as a dup, and just deletes the first one), I want to identify the blanks (see red cells) and then I want to "merge" the cell so that the left over row has the most complete information possible. So here's a breakdown of the formula I want to write:
A: Check the to see if FirstName and LastName are identical
B: Next, I want to check the rows vs. the FamilyName to make sure they are identical (if it does not match, then the formula stops).
C: Then, if either the Address cell or the Phone cell is blank, I want to copy the cell that has a value. (and if they're both blank, I want to leave them blank).
D. Lastly, IF the cell is a duplicate, I want to merge the relationship column. In this case, the end result of Relationship should be Dismissal 1 + Mother.
Can anyone help me? I have no idea where to even begin!
Here's a sample of the Excel data I'm working with:
FamilyName Address1 FirstName LastName Relationship Phone#
00001 1234 N Rd John Doe Father 1234
00002 5678 S Ln Jane Doe Dismissal 1 (blank)
00002 (blank) Jane Doe Mother 5678
00003 2468 W Hwy Jane Doe Grandmother 1234
So here's what I want to do... you'll notice that line 2 and 3 are duplicates. I want to run a formula or macro on this data (I have about 30,000 rows that is about 12,000 duplicates). Here's the issue, instead of just running a formula that deletes one entire row (ie; the formula identifies rows 3 and 4 as a dup, and just deletes the first one), I want to identify the blanks (see red cells) and then I want to "merge" the cell so that the left over row has the most complete information possible. So here's a breakdown of the formula I want to write:
A: Check the to see if FirstName and LastName are identical
B: Next, I want to check the rows vs. the FamilyName to make sure they are identical (if it does not match, then the formula stops).
C: Then, if either the Address cell or the Phone cell is blank, I want to copy the cell that has a value. (and if they're both blank, I want to leave them blank).
D. Lastly, IF the cell is a duplicate, I want to merge the relationship column. In this case, the end result of Relationship should be Dismissal 1 + Mother.
Can anyone help me? I have no idea where to even begin!