** Corrections / Updates Made**
Hello Y'all, first time post! I'm looking for some help translating this formula from an excel file into Alteryx. The Alteryx formula below works, but produces higher numbers of records than what the formula does in excel. Calling for a consult on this one as I feel my syntax is wrong somewhere, or just be blunt and tell me I'm doing it wrong.
Excel Formula:
=IF((L10="x")*AND(OR(AC10="y",AC10="a"),OR(BD10="y",BD10="a"),(BG10=0)),"VALID","")
If L10 (Certification) is checked AND AC OR BD have a value (They took that e-learning course), BUT They have not had the in-person course of BG10, then they are VALID to take BG10.
My confusion is around the * in front of the AND statement making it a wild card. Could that be the issue, and possibly the original formula from the user be wrong? I asked him to explain the logic, and he stated to me that his original formula threw an error, and he hit "ok" to let excel fix it.
My Alteryx attempt:
IF (
[L10] == "X"
AND (
([AC10] == "Y" OR [AC10] == "A")
OR ("[BD10] == "Y" OR [BD10] == "A")
OR [BG10] == Null()
)
)
THEN "VALID"
ELSE Null()
ENDIF