IF(And statement not showing correct result

JREYNA03

New Member
Joined
Nov 22, 2023
Messages
34
Office Version
  1. 2016
Platform
  1. Windows
I noticed that when I conditions change the result of "Adjustment", "Do Not adjust" does not change

=IF(AND(G2="Complete",N2="TRUE",O2="TRUE",P2="TRUE",Q2="True",R2="True"),"Do Not Adjust", "Adjust")
if(And.PNG
Statement.PNG
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Are your calculations set to manual or automatic?
What if you press the F9 key? then does it change?

Also, are your "TRUE" values boolean, or text?
If boolean, you need to remove the double-quotes from around all the TRUE values in your formula.
 
Upvote 0
Are your calculations set to manual or automatic?
What if you press the F9 key? then does it change?

Also, are your "TRUE" values boolean, or text?
If boolean, you need to remove the double-quotes from around all the TRUE values in your formula.
I tried that. It does not seem to be capturing the change in Variance
if(And.PNG
 
Upvote 0
Looks correct to me. None of P, Q, R are TRUE, so it should return "Adjust".
 
Upvote 0
Looks correct to me. None of P, Q, R are TRUE, so it should return "Adjust".
It should only show "Adjust" if all requirements are met
N=True
O=True
P= True
Q=True
R=True
In the example P=False
 
Upvote 0
Your formula only shows "Do Not Adjust" if all the conditions are met.
 
Upvote 0
Any suggestions on what to change?
It sounds to me like you may have your "Do Not Adjust" and "Adjust" arguments reversed.
Basically, an AND formula says if ALL these conditions are met, return this value (the second argument).
In all other cases, return the value in the third argument.
 
Upvote 0
It sounds to me like you may have your "Do Not Adjust" and "Adjust" arguments reversed.
Basically, an AND formula says if ALL these conditions are met, return this value (the second argument).
In all other cases, return the value in the third argument.
How do I add a third argument ?
 
Upvote 0
You already have it. An IF has three arguments:
=IF(condition to check,what to return if condition is true,what to return if condition is false)

You have "Do Not Adjust" as your 2nd argument and "Adjust" as your third argument.
If what you said in post 5 is true, then you just need to change those two arguments around.
 
Upvote 0

Forum statistics

Threads
1,223,533
Messages
6,172,886
Members
452,486
Latest member
standw01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top