if statements

J

John

if i want to write a statement that said "if this is true,
AND that is true, then equal X, if not, equal Y"

How would I write that?
Thank you-
 
D

Don

-----Original Message-----
if i want to write a statement that said "if this is true,
AND that is true, then equal X, if not, equal Y"

How would I write that?
Thank you-
.

Try

=if(and('this is true','that is true'),"X","Y"
 
J

John

Thanks!
is there a limit to how many If/And's you can use in this?
for example, "if a is true, b is true, and c is true,
then equal x, if not, equal y"
 
D

Don

There is a limit to nested "If's" but I've not heard of a
limit to "And" statements.....however, if I'm wrong...stay
tuned...one of the very qualified experts here will
straighten us both out.......:)

Don
 

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