So I can extract the unique rows from the table on the file using unique then it is being sorted based on column A. Next step however is to only contain one line of the 5th column. If there are two or more lines, yes on both 3rd and 4th column is considered. If yesyes is not available, yesno is next considered and finally nono. Noyes will never be an occurence.
File Here
File Here