IF AND OR Together

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
I am trying to have a cell state Compliant or Non-Compliant based off other cells.

If TA Error = FALSE and Days to EAS - TRS Completion is greater than or equal to (>=) 180 show Compliant OR if Days to EAS is >= 180 show Compliant.

This is what I have so far, but it doesn't seem to work.
=IF(AND(OR([@[Days To EAS]=]=>=180),[@[TA Error]]=FALSE,[@[Days to EAS - TRS Completion]=]=>=180),"Compliant","Non-Compliant")

The TRS Compliance, where this formula is located, is sometimes displaying Non-Compliant when it should say Compliant, and vice versa.

[TABLE="width: 500"]
<tbody>[TR]
[TD]TA
[/TD]
[TD]TA COMP DATE
[/TD]
[TD]DAYS TO EAS
[/TD]
[TD]DAYS TO EAS - TRS COMPLETION
[/TD]
[TD]TA ERROR
[/TD]
[TD]TRS COMPLIANCE
[/TD]
[/TR]
[TR]
[TD]TA
[/TD]
[TD]18-APR-18
[/TD]
[TD]59
[/TD]
[TD]59
[/TD]
[TD]FALSE
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]#N/A
[/TD]
[TD][/TD]
[TD]73
[/TD]
[TD]43281
[/TD]
[TD]TRUE
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]#N/A
[/TD]
[TD][/TD]
[TD]237
[/TD]
[TD]43445
[/TD]
[TD]TRUE
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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