Note, I thought this was the original person providing a sample data. The below may not be relevant, but may help someone else so I'll leave it here.
-------------------------------------
I see an attachment with:
So it appears you simply want a list of unique values from column A entered into column C, regardless of what is in column B? You can do that with Advanced Filter instead.
With a header in A1 (e.g. "Color"), select column A and click on Data > Sort & Filter section > Advanced. For Action, choose to Filter the list in-place or Copy to another location. 'List Range' would be A1:A5 and 'Copy To' would be wherever you want to put the unique values, e.g. $C$1. Check the box for 'Unique Records Only' and click OK.
Bookmarks