Re: how to excude items with SUMIFS
Aladin,
there is some weird problem with Excel.
https://1drv.ms/x/s!AlfEVNV8SKm1dqugHTk0Mvmk4_c
i have uploaded the sample here. if you put the formula
Code:
=SUMPRODUCT(DataAMOUNT,--ISNUMBER(MATCH(DataYear,{2011},0)),1-ISNUMBER(MATCH(DataMonth,{111},0)),--ISNUMBER(MATCH(LEFT(DataPRODUCT),{5,6,7}&"",0)))
in any sheet, it works. but if you put it in that one single sheet called "put formula anywhere here" then the formula returns zero, no matter what.
what is the problem with this worksheet? why the formula return zero here and not in other sheets?
I have deleted "Main" in your file. Added a new sheet and name this one Main. Implemented the formula as is. And it works as advertised.
By the way, I have replace your definitions for DataAMOUNT, etc. which ones that will not slow down your workbook as much as older definitions did.
Data:
=Data!$1:$1048576
DataLrow:
=MATCH(9.99999999999999E+307,Data!$A:$A)
DataAMOUNT:
=INDEX(Data,2,MATCH("AMOUNT",INDEX(Data,1,0),0)):INDEX(Data,DataLrow,MATCH("AMOUNT",INDEX(Data,1,0),0))
DataMonth:
=INDEX(Data,2,MATCH("Month",INDEX(Data,1,0),0)):INDEX(Data,DataLrow,MATCH("Month",INDEX(Data,1,0),0))
DataPRODUCT:
=INDEX(Data,2,MATCH("PRODUCT",INDEX(Data,1,0),0)):INDEX(Data,DataLrow,MATCH("PRODUCT",INDEX(Data,1,0),0))
DataYear:
=INDEX(Data,2,MATCH("Year",INDEX(Data,1,0),0)):INDEX(Data,DataLrow,MATCH("Year",INDEX(Data,1,0),0))