summing with an if statement

K

Kevin

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
 
D

Dave R.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top