I'm trying to gather info from another sheet and use it in an IF formula, but I've not been able to make it work correctly.
Here is the current formula:
=IF(AND(CONTAINS([38-2021]$1, {Vacations/Holidays - DDQC Range - weeks}), {Vacations/Holidays - DDQC Range - assigned} = $[DDQC Person]@row), "YES", "NO")
It returns #INVALID OPERATION
Here's another format that we tried:
=IF(OR(AND({Vacations/Holidays - DDQC Range - assigned} = $[DDQC Person]@row, {Vacations/Holidays - DDQC Range - end week} = [51-2021]$1), AND({Vacations/Holidays - DDQC Range - assigned} = $[DDQC Person]@row, {Vacations/Holidays - DDQC Range - start week} = [51-2021]$1)), "YES", "NO")
It also returns #INVALID OPERATION
I was able to make it work with a COUNTIFS formula, but I really need the yes/no option of the IF formula.
=COUNTIFS({Vacations/Holidays - DDQC Range - weeks}, CONTAINS([36-2021]$1, @cell), {Vacations/Holidays - DDQC Range - assigned}, $[DDQC Person]@row)
This is an excerpt from my vacations/holidays sheet. The ranges are for the Assigned column and Joined Weeks column.
This is where I am building the formula: