I have this excel worksheet
A B c foo1 joo1 loo1 foo1 joo2 loo2 foo2 joo3 loo3 foo2 joo4
Glad you found a solution. I'd have also recommended a pivot table. No coding required, just drag & drop your fields into the Row box. Then let Excel filter out the duplicates for you.