As such references I had found, those are not covering "assuming blank cells same as non-blank ones" matter.
I had found this array formula: (Ref: extendoffice.com)
=SUM(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET(D2,ROW(D2:D22)-ROW(D2),,1)), IF(D2:D22<>"",MATCH("~"&D2:D22,D2:D22&"",0))),ROW(D2:D22)-ROW(D2)+1),1))
Any guides are appreciated.
Update
F22 result of calculating for Table1[Column1]
G22 result of calculating for Table1[Column2]
H22 result of calculating for Table1[Column3]
I want the Formula returns: G22=4 & H22=1
Note: My table has filtered range and I calculating visible values.
