What formula can be used to count unique values in column A if Column B is a value. i have seen many online but none of them seem to work when only using Column ranges , the dat
If your data are in A1:B18
, and criteria1
is in C1
, try:
{=SUM(IF(FREQUENCY(IF(A1:A18<>"", IF(B1:B18=C1, MATCH(A1:A18, A1:A18, 0))), ROW(A1:A18)-ROW(A1)+1), 1))}
Expanded:
{=SUM(
IF(
FREQUENCY(
IF(A1:A18<>"",
IF(B1:B18=C1,
MATCH(A1:A18, A1:A18, 0)
)
),
ROW(A1:A18)-ROW(A1)+1
),
1)
)}
Enter as an array formula with CtrlShiftEnter