Help with a formula

G

Guest

Is there a "and" function available in Excel? I want to check the contents
of two different cells and if both are true change the format of another
cell. For example:
if "a2=AST" and if a3="Y" If both are true set the conditional format. Thanks
 
B

broro183

Hi AJK,

Yes there is, one solution you can use for your conditional formattin
is:

=if(and(a2="AST",a3="Y"),"true","false")

btw, your first port of call when you have a question should be th
help files ie [F1]. Type in "and function" and have a read.

hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience..
 
P

Pete_UK

Yes: as it is a function the format is AND(condition1,condition2 etc).
So in your case the formula would be:

AND(A2="AST",A3="Y")

then set your format for the cell.

Hope this helps.

Pete
 
G

Guest

Thanks to both of you for the help. I had looked in a book and did not find
the "and" function. I then went to help and found it.

Thanks again.
 
B

broro183

Hi,
no problem, pleased I could help & thanks for the feedback.

as you may have noticed, the if part of my formula is redundant, onl
the "and" is needed as shown by Pete.

Rob Brockett
NZ
Always learning & the best way to learn is to experience..
 

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