A
agarwaldvk
Can I use the SUMIF function with compound conditions like so :-
"=sumif(and((index(namedRange1,,1),"a"),(index(namedRange1,,2),"b")),index(namedRange1,1,3))",
the idea being to add values in column 3 of the named range namedRange
for those rows only where both of specified conditions are true i.e. th
value in column1 = "a" and the value in column2 = "b".
I now know I can use the above with single condition as shown below :-
=sumif(index(namedRange1,,1),"a",index(namedRange1,1,3))
but that doesn't seem to help here!
I could get it going by typing in the formula as below :-
"{=SUM(IF(INDEX(namedRange1,,1)="a",IF(INDEX(namedRange2,,2)="b",INDEX(namedRange1,,3),0),0))}
-> entered as an array formula!
but I would rather use sumif with compound conditions, if I could!
Any help would be greatly appreciated!
Best regards
Deepak Agarwa
"=sumif(and((index(namedRange1,,1),"a"),(index(namedRange1,,2),"b")),index(namedRange1,1,3))",
the idea being to add values in column 3 of the named range namedRange
for those rows only where both of specified conditions are true i.e. th
value in column1 = "a" and the value in column2 = "b".
I now know I can use the above with single condition as shown below :-
=sumif(index(namedRange1,,1),"a",index(namedRange1,1,3))
but that doesn't seem to help here!
I could get it going by typing in the formula as below :-
"{=SUM(IF(INDEX(namedRange1,,1)="a",IF(INDEX(namedRange2,,2)="b",INDEX(namedRange1,,3),0),0))}
-> entered as an array formula!
but I would rather use sumif with compound conditions, if I could!
Any help would be greatly appreciated!
Best regards
Deepak Agarwa