If/Or Statement Based on Criteria - REPOST

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
I am trying to have a cell state Compliant or Non-Compliant based off of results in other cells. I need TRS Compliance to say Compliant if, EAS is greater than 6 months from today or the TRS Master = Y.

My current formula for TRS Compliance,
=IF(OR([@EAS]<=Table1[today + 6 months],[@[TRS Master]]=""),"Non-Compliant","Compliant")

MCTIMS - TRS through Date Submitted are all Index(Match) formulas.
EASMCTIMS - TRSMCTIMS - CAPSTONETRS MASTERDATE ATTENDEDDATE SUBMITTEDDAYS TO EASTRS COMPLIANCE
20180401Y5-Feb-1812-Mar-1888Non-Compliant

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I need TRS Compliance to say Compliant if, EAS is greater than 6 months from today or the TRS Master = Y.
In your posted example, the TRS Master = Y, yet the compliance says "non-compliant".
 
Upvote 0
Exactly. The statement that I have posted, for some reason, does not work when it has been put to the test against actual data. I am not sure if that is because the referenced cells are pulled from other sheets within the excel doc or what is wrong with it.
 
Upvote 0
In the OP you say that you want "compliant" if
EAS is greater than Today+6 months
OR
TRS Master = Y

In your example, TRS Master = Y
so (EAS is greater than Today+6 month) or (TRS Master = Y) is TRUE
so one would expect "compliant"

Yet your example shows "not compliant".

I would use a formula like
=IF(OR([@EAS]>(TODAY()+DATE(0,6,0), [@TRS MASTER]="Y"), "Compliant", "other")
 
Upvote 0
This formula contains an error. When reviewing it in the Insert Formula function, the OR portion returns a value of Volatile. Excel will not let me input this into the spreadsheet.
 
Upvote 0
It looks like I missed a parenthesis
=IF(OR([@EAS]>(TODAY()+DATE(0,6,0)), [@TRS MASTER]="Y"), "Compliant", "other")
 
Upvote 0

Forum statistics

Threads
1,215,390
Messages
6,124,667
Members
449,178
Latest member
Emilou

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