Stephan
Member
Hello
To Sort a list of NAMES with exam PASS or FAIL, however some FAIL 1st time but PASS next attempt, however using UNIQUE, some NAMEs appear TWICE.
So far FORMULA with numerous helper columns, is there better way then this on XL2021? ie VStack or HStack is 365 only.
To demonstrate error, kylies appears twice, UNIQUE will display name twice, as 2nd column there is 2 entries for same name, hence 2 unique entries:
Start simple, but quickly desends to more columns

To Sort a list of NAMES with exam PASS or FAIL, however some FAIL 1st time but PASS next attempt, however using UNIQUE, some NAMEs appear TWICE.
So far FORMULA with numerous helper columns, is there better way then this on XL2021? ie VStack or HStack is 365 only.
To demonstrate error, kylies appears twice, UNIQUE will display name twice, as 2nd column there is 2 entries for same name, hence 2 unique entries:
=SORT(UNIQUE(FILTER(I2#,(J2:J9="PASS")+(J2:J9="FAIL"))))
Start simple, but quickly desends to more columns
PASS LIST: =SORT(UNIQUE(FILTER(I2#,(J2:J9="PASS"))))
FAIL LIST: =SORT(UNIQUE(FILTER(I2#,(J2:J9="FAIL"))))
PASS LIST comparing FAIL LIST to exclude DUPLICATE:
=UNIQUE(FILTER(A17:A21,ISNA(MATCH(A17:A21,C17:C21,0)*0)))
COLUMN MERGE of PASS exc DUPLICATE ENTRY + FAIL:XLOOKUP for EXAM STATUS of EXCLUDE DUPLICATE LIST:
=XLOOKUP(K15,H$2:H$9,I$2:I$9)
=SORT(UNIQUE(LET(
a,F16:G19,
b,C16#,
ra,ROWS(a),
rb,ROWS(b),
rsq,SEQUENCE(ra+rb),
csq,SEQUENCE(,COLUMNS(a+b)),
out,IFS(rsq<=ra,INDEX(a,rsq,csq),rsq<=ra+rb,INDEX(b,rsq-ra,csq),TRUE,),out)))

