I currently have this:
=SUMPRODUCT(SUMIF(A:A;Index(List;;1);B:B))
Column A is a list of names, column B is a list of values for each names. The named range List has 2 columns, the first one are names and the second one are boolean values (0 or 1).
My formula actually works to return the sum of every column B values of its corresponding name in the A column IF that name is in the first column of my named range List. It works fine.
However, I would like to filter that to only include names from List that have the boolean value equal to 1 (ie. Index(List;;2) = 1.
How is this possible?
This is what I tried but it gives me a #REF! error:
=SUMPRODUCT(SUMIF(A:A;Index(List;;1)*Index(List;;2);B:B))
=INDEX(LIST;60;1)everything is fine, but as soon as I try another column (replacing the 1 with 2 for example), i get a #REF! error. List is actually=$B$2:$B$100;$L$2:$W$100(this is from another sheet, column B being uniques names and all the other columns L:W being 0's or 1's). I thought it would do the same as the B2:W100 range without the C:K columns but it doesn't seem so. - dan