I am working on a training tracker and am struggling with a formula that, while long, seems fairly straightforward. The column is a checkbox. And should be marked off with a check if the row is deemed a "required training".
I am having an issue with the first part of the formula (The bolded portion below). Basically, the formula starts out by saying "If the training is a mandatory training, the training is a supervisor specific training, and the employee is a supervisor; mark the checkbox in the required column."
The issue I am having is that with the formula as written it always marks the supervisor training as required. Perhaps I am missing a better way to do this.
=IF(AND([Training Requirements]@row = "Required", [Supervisor Training?]@row = "Yes", [Supervisor?]@row = "Yes"), 1, IF(OR(AND([Training Requirements]@row = "Required", CONTAINS([Primary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Primary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Primary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Secondary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Primary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Tertiary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Secondary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Primary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Secondary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Secondary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Secondary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Tertiary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Tertiary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Primary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Tertiary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Secondary Department]@row, [Departments Required to Complete Training (HELPER)]@row)), AND([Training Requirements]@row = "Required", CONTAINS([Tertiary Location]@row, [Locations Required to Complete Training (HELPER)]@row), CONTAINS([Tertiary Department]@row, [Departments Required to Complete Training (HELPER)]@row))), 1, 0))