hi, I am trying to figure out a way of using sumproduct with mulitple criteria to return the sum of values within a set of columns. Attached is the example.
Column A = contains values for criteria 1
column B = contains values for criteria 2
columns C - H inclusive = contains values for months 1 - 6
based upon a particular month (range name "include"), i want to be able to get the YTD results based upon the criterias i set.
i have been trying
=SUMPRODUCT(--(A2:A10="A"),--(B2:B10=6),OFFSET(C2,0,0,,include))
and
=SUMPRODUCT(--(A2:A10="A"),--(B2:B10=6),sum(OFFSET(C2,0,0,,include)))
but it seems i keep running into issues with the different array size in columns C-H. i guess i need to somehow get it down to one column some how so that sumproduct can do its magic.
any ideas?Test.xlsx
Bookmarks