Hello all,
Can anyone help to improve this formula?
=IF($J$4="",SUM(TB!$C$6:$P$10000),IFERROR(SUMIFS(INDEX(TB!$C$6:$P$10000,0,MATCH($D$3,TB!$C$5:$P$5,0)),TB!$A$6:$A$10000,$B8,TB!$B$6:$B$10000,$J$4),""))
It returns "zero" instead of $4,000.
Initially, I had this formula:
=IFERROR(SUMIF(TB!$A$7:$A$10000,$B6,INDEX(TB!$C$6:$P$10000,0,MATCH($F$3,TB!$C$5:$P$5,0))),"")
I needed to add one more MATCH cell $J$4, TB!$B$6:$B$2000.
Thank you, Aladin for your help.