summing with an if statement

  • Thread starter Thread starter Matt
  • Start date Start date
Try this:

IF(AND(X=True,Y=True),sum(A1:A5),<falsestuff>)

<falsestuff> is what you want to do if either of them are
false.

or

IF(and(x=true,Y=True),sum(A1:A5))

if you just want to leave the cell empty if either
condition is false.

Good Luck,

Kevin
 
Kevin, if I'm not mistaken, that would either sum all the numbers, or
nothing, which is usually not what people are looking for..
 
Back
Top