A列中不重复项的个数=SUMPRODUCT(1/COUNTIF(INDIRECT("A1:A"&COUNTA(A:A)),INDIRECT("A1:A"&COUNTA(A:A))))
B列是1的,对应A列中不重复项的个数, 在SUMPRODUCT中加一个B列是1的条件就可以了:
=SUMPRODUCT((INDIRECT("B1:B"&COUNTA(A:A))=1)*1/COUNTIF(INDIRECT("A1:A"&COUNTA(A:A)),INDIRECT("A1:A"&COUNTA(A:A))))