I receive a spreadsheet with the information listed below. The spreadsheet has a list of employees, spouse, children with DOB's and packages (Medical & Dental). I want to create a formula that extracts every employee with the relationship 1 without duplicates. My current formula extracts employees with the 1 relationship, but duplicates due to some employees having both medical AND dental packages. I am looking for help on re configuring the following formula to list every employee with relationship 1 without duplicates:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Family Group[/TD]
[TD]Employee Name[/TD]
[TD]# of People[/TD]
[TD]DOB[/TD]
[TD]Relationship[/TD]
[TD]Package[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Bobby Jackson[/TD]
[TD]4[/TD]
[TD]01/04/1975[/TD]
[TD]1[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Sandra Jackson[/TD]
[TD]4[/TD]
[TD]8/23/1973[/TD]
[TD]2[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Collette Jackson[/TD]
[TD]4[/TD]
[TD]5/12/2004[/TD]
[TD]3[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Joe Jackson[/TD]
[TD]4[/TD]
[TD]6/7/2008[/TD]
[TD]3[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bill O'Brian[/TD]
[TD]Bill O'Brian[/TD]
[TD]2[/TD]
[TD]4/12/1969[/TD]
[TD]1[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bill O'Brian[/TD]
[TD]Jackie O'Brian[/TD]
[TD]2[/TD]
[TD]9/4/1971[/TD]
[TD]2[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Matt James[/TD]
[TD]3[/TD]
[TD]7/10/1987[/TD]
[TD]1[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Beckie James[/TD]
[TD]3[/TD]
[TD]4/11/1990[/TD]
[TD]2[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Richard James[/TD]
[TD]3[/TD]
[TD]12/5/2010[/TD]
[TD]3[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Bobby Jackson[/TD]
[TD]4[/TD]
[TD]1/4/1975[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Sandra Jackson[/TD]
[TD]4[/TD]
[TD]8/23/1973[/TD]
[TD]2[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Collette Jackson[/TD]
[TD]4[/TD]
[TD]5/12/2004[/TD]
[TD]3[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Joe Jackson[/TD]
[TD]4[/TD]
[TD]6/7/2008[/TD]
[TD]3[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]George Wilks[/TD]
[TD]George Wilks[/TD]
[TD]2[/TD]
[TD]4/12/1969[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]George Wilks[/TD]
[TD]Jackie Wilks[/TD]
[TD]2[/TD]
[TD]9/4/1971[/TD]
[TD]2[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Matt James[/TD]
[TD]3[/TD]
[TD]7/10/1987[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Beckie James[/TD]
[TD]3[/TD]
[TD]4/11/1990[/TD]
[TD]2[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Richard James[/TD]
[TD]3[/TD]
[TD]12/5/2010[/TD]
[TD]3[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Amy Belts[/TD]
[TD]Amy Belts[/TD]
[TD]1[/TD]
[TD]12/30/1954[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
</tbody>[/TABLE]
Here is what I am attempting to do with the formula:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Employee Name[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[/TR]
[TR]
[TD]Bill O'Brian[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[/TR]
[TR]
[TD]George Wilks[/TD]
[/TR]
[TR]
[TD]Amy Belts[/TD]
[/TR]
</tbody>[/TABLE]
thank you for your help!
Code:
=IFERROR(INDEX($A$2:$A$20,AGGREGATE(15,6,ROW($2:$20)/($E$2:$E$20=1),ROW(1:1))),"")
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Family Group[/TD]
[TD]Employee Name[/TD]
[TD]# of People[/TD]
[TD]DOB[/TD]
[TD]Relationship[/TD]
[TD]Package[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Bobby Jackson[/TD]
[TD]4[/TD]
[TD]01/04/1975[/TD]
[TD]1[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Sandra Jackson[/TD]
[TD]4[/TD]
[TD]8/23/1973[/TD]
[TD]2[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Collette Jackson[/TD]
[TD]4[/TD]
[TD]5/12/2004[/TD]
[TD]3[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Joe Jackson[/TD]
[TD]4[/TD]
[TD]6/7/2008[/TD]
[TD]3[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bill O'Brian[/TD]
[TD]Bill O'Brian[/TD]
[TD]2[/TD]
[TD]4/12/1969[/TD]
[TD]1[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bill O'Brian[/TD]
[TD]Jackie O'Brian[/TD]
[TD]2[/TD]
[TD]9/4/1971[/TD]
[TD]2[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Matt James[/TD]
[TD]3[/TD]
[TD]7/10/1987[/TD]
[TD]1[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Beckie James[/TD]
[TD]3[/TD]
[TD]4/11/1990[/TD]
[TD]2[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Richard James[/TD]
[TD]3[/TD]
[TD]12/5/2010[/TD]
[TD]3[/TD]
[TD]MEDICAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Bobby Jackson[/TD]
[TD]4[/TD]
[TD]1/4/1975[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Sandra Jackson[/TD]
[TD]4[/TD]
[TD]8/23/1973[/TD]
[TD]2[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Collette Jackson[/TD]
[TD]4[/TD]
[TD]5/12/2004[/TD]
[TD]3[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[TD]Joe Jackson[/TD]
[TD]4[/TD]
[TD]6/7/2008[/TD]
[TD]3[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]George Wilks[/TD]
[TD]George Wilks[/TD]
[TD]2[/TD]
[TD]4/12/1969[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]George Wilks[/TD]
[TD]Jackie Wilks[/TD]
[TD]2[/TD]
[TD]9/4/1971[/TD]
[TD]2[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Matt James[/TD]
[TD]3[/TD]
[TD]7/10/1987[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Beckie James[/TD]
[TD]3[/TD]
[TD]4/11/1990[/TD]
[TD]2[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[TD]Richard James[/TD]
[TD]3[/TD]
[TD]12/5/2010[/TD]
[TD]3[/TD]
[TD]DENTAL[/TD]
[/TR]
[TR]
[TD]Amy Belts[/TD]
[TD]Amy Belts[/TD]
[TD]1[/TD]
[TD]12/30/1954[/TD]
[TD]1[/TD]
[TD]DENTAL[/TD]
[/TR]
</tbody>[/TABLE]
Here is what I am attempting to do with the formula:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Employee Name[/TD]
[/TR]
[TR]
[TD]Bobby Jackson[/TD]
[/TR]
[TR]
[TD]Bill O'Brian[/TD]
[/TR]
[TR]
[TD]Matt James[/TD]
[/TR]
[TR]
[TD]George Wilks[/TD]
[/TR]
[TR]
[TD]Amy Belts[/TD]
[/TR]
</tbody>[/TABLE]
thank you for your help!
Last edited: