I’m trying to sum all cells in C2:C2000 if the corresponding cell in column A is in (10; 20], but I’m having problems with the condition.
I’ve tried something like =SUMIF(A2:A2000, AND(">10","<=20"), C2:C2000), but that returns 0 which is incorrect.
Thanks.
[edit]
It is possible to use =SUMIF(A2:A2000, ">10", C2:C2000) - SUMIF(A2:A2000, ">20", C2:C2000) but that’s not exactly what I’m looking for.
The easy way to get around the complex conditions limitation is to use another column as a ‘local variable’ – make column D the result of your condition (AND(etc)), hide it if you want to have less screen clutter, and use D2:D2000 as the if part of the SUMIF.
edited to add alternate option:
http://support.microsoft.com/kb/275165
use Sum(if( .. )) instead of SUMIF, and use products and sums instead of ANDS and ORs.
Personally, I think using an intermediate column is easier to follow and maintain.