How to find the total result of selected category?

Viewed 34
2 Answers

use:

=IFERROR(SUM(INDEX(QUERY({D7:G}, "where 1=1 and "&
 TEXTJOIN(" and ", 1, 
 IF(D4="",,"Col1 = '"&D4&"'"),
 IF(E4="",,"Col2 = '"&E4&"'"),
 IF(F4="",,"Col3 = '"&F4&"'"))),,4)), 0)

change from Sumif to Sumifs! Look at your sheet :D for reference i put the new syntax here =sumifs(G7:G14, F7:F14, $F$4, E7:E14, $E$4)

cheers

Related