I have attached summary sheet and data sheet. Summary is where I want the formula and INCdata is the data sheet where the raw data is available.
I need a formula to sum the column J in the summary sheet for the conditions below:
1) dates in column A are falls in a calendar month
2) when column C is not equal to column D
3) should also exclude column J values when column C has values like "SUPPLIER" and "OTHER" in them.
Summary sheet that needs the formula
The formula I am using in the cell AT116 right now is =SUMIFS(INCdata!$J:$J,INCdata!$A:$A,">="&$B115,INCdata!$A:$A,"<"&$B116,INCdata!$P:$P,"1")
I have a column P (sheet name:INCdata) where I am checking condition 2 and 3 given above using this formula in the cell P5766 for every row (=IF($C5766="SUPPLIER",0,IF($C5766="OTHER",0,IF($C5766=$D5766,0,1)))), based on which the formula in the summary sheets yields the results for sum of J. But if there is a way to avoid using a separate formula here and include this criteria in the summary sheet formula, it would be ideal.