IF function w/ 'and' condition

Joined
Aug 14, 2012
Messages
4
Reaction score
0
Excel - IF function w/ 'and' condition

Hello, I am trying to set up an IF statement that has two conditions. I read a prior thread that was helpful, but I cannot get mine to work.

My two logical tests are as follows for variables let's call x and t:
if x>(y-.5)
and if (r-2)<t<(r+2.5)
then output "A" else "B"

does that make sense? here is my formula...

=IF(AND((O37>(Q37-.5)),((G37-2)<M37<(G37+2.5))),"A","B")

thank you for any suggestions you may have
 
Last edited:
Joined
Aug 14, 2012
Messages
4
Reaction score
0
Figured it out! Turns out that my greater than less than section needs to be two different conditions...

=IF(AND((O22>P22),((G22-2)<M22),((G22+2.5)>M22)),"A","B")
 
Joined
Mar 20, 2012
Messages
764
Reaction score
4
Glad you got it working! Thanks for posting back with the solution!
 

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