Having Excel O365, you could use:
=COUNT(UNIQUE(FILTER(A2:A9,B2:B9="Yes")))
With earlier versions of Excel you could use:
=SUM(--(FREQUENCY(IF(B2:B9="Yes",MATCH(A2:A9,A2:A9,0)),ROW(A2:A9))>0))
Which is an array entered formula so confirmed through a combination of the keys Ctrl Shift Enter
I would do this with 2 new columns :
Two formula used :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.