=COUNTIF(data!$B$2:$B$12,A2)
=SUMIF(data!$B$2:$B$12,tinh!A6,data!$C$2:$C$12)
=SUMPRODUCT((data!$B$2:$B$12=tinh!A2)*NOT(ISNA(data!$C$2:$C$12)))
=SUMPRODUCT((data!$B$2:$B$12=tinh!A6)*NOT(ISNA(data!$C$2:$C$12))*data!$D$2:$D$12)
Số tiền USD=SUMPRODUCT((data!$B$2:$B$13=tinh!B4)*(NOT(ISNA(data!$C$2:$C$13)))*(data!$D$2:$D$13="usd"))
VND thì tương tự bạn nhé!=SUMPRODUCT((data!$B$2:$B$13=tinh!B8)*(NOT(ISNA(data!$C$2:$C$13)))*(data!$D$2:$D$13="usd")*data!$E$2:$E$13)