Is it counting unique distintc list with criteria in other column?
Try with one formula only:
=SUM(IFERROR(1/IF(SUMIF(A2:A67,A2:A67,D2:D67)>0,COUNTIF(A2:A67,A2:A67),0),0))
Or
=SUM(IFERROR(1/((SUMIF(A2:A67,A2:A67,D2:D67)>0)*COUNTIF(A2:A67,A2:A67)),0))
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
Bookmarks