Hey guys,
I have this formula:
=SUMPRODUCT(SUMIFS(Sales[TotalN],Sales[ICM],"*"&AI5:AJ5&"*",Sales[Company],$AH$5,Sales[CC No],$B8,Sales[TipoDoc],{"FACFO","NC"},Sales[Date],">="&E$6,Sales[Date],"<="&EOMONTH(E$6,0)))
This formula has 2 "ORS" on the same "sentence" and works if i only want that Sales[TipoDoc],"FACFO".
Maybe because i have two "ORS" on the same formula and i can't have it? I know i can do this by duplicating this formula with the sign "+", i mean, adding every records that meet all those criterias and also = "FACFO" plus everything but with "NC" on TypeDoc. Example: =SUMPRODUCT(SUMIFS(Sales[TotalN],Sales[ICM],"*"&AI5:AJ5&"*",Sales[Company],$AH$5,Sales[CC No],$B8,Sales[TipoDoc],"FACFO",Sales[Date],">="&E$6,Sales[Date],"<="&EOMONTH(E$6,0)))+=SUMPRODUCT(SUMIFS(Sales[TotalN],Sales[ICM],"*"&AI5:AJ5&"*",Sales[Company],$AH$5,Sales[CC No],$B8,Sales[TipoDoc],"NC",Sales[Date],">="&E$6,Sales[Date],"<="&EOMONTH(E$6,0)))
My question is, i wonder how i could do it on the same formula, or, what is wrong with my formula above?
Thank you very much
Best regards
Pedro
Bookmarks