JohnnyTightlips
Board Regular
- Joined
- Aug 13, 2006
- Messages
- 94
Hi Folks
In another thread in this forum I discovered the useful way to SUMIF multiple criteria in the same column e.g:
=sum(sumif(a1:a5,{"apples","oranges"},b1:b5 ))
Playing around with it, I have noticed that you need to explicitly state the criteria, as using a cell reference: e.g. C2 instead of "apples" produces an error.
Is there a way to reference cells? I am familiar with the curly braces as part of array formulas, but not with how they are applied in this type of formula; I assume it's a lack of understanding with what the formula is doing.
Otherwise, this an excellent forum; a shame I only stumbled on it recently
In another thread in this forum I discovered the useful way to SUMIF multiple criteria in the same column e.g:
=sum(sumif(a1:a5,{"apples","oranges"},b1:b5 ))
Playing around with it, I have noticed that you need to explicitly state the criteria, as using a cell reference: e.g. C2 instead of "apples" produces an error.
Is there a way to reference cells? I am familiar with the curly braces as part of array formulas, but not with how they are applied in this type of formula; I assume it's a lack of understanding with what the formula is doing.
Otherwise, this an excellent forum; a shame I only stumbled on it recently