I am trying to set up IF/OR/AND statements for a column with numbers for a CSV file but the formula is replacing some numbers under the "actual in-person attendees" column with 50000. I tried all the statements below with IsNull and IsEmpty. What am I doing wrong? Any help would be greatly appreciated.
IF IsNull([Actual in-person attendees]) AND DATETIMEPARSE([End_date], "%Y-%m-%d") <= DATETIMEADD(DATETIMENOW(), -7, "days") AND !CONTAINS([Program type], "Trade show") THEN "50000" Else [Actual in-person attendees] ENDIF
IF IsEmpty([Actual in-person attendees]) AND DATETIMEPARSE([End_date], "%Y-%m-%d") <= DATETIMEADD(DATETIMENOW(), -7, "days") AND CONTAINS([Program type], "Alumni") OR CONTAINS([Program type], "Client") OR CONTAINS([Program Type], "Community") OR CONTAINS([Program Type], "Employer") OR CONTAINS([Program type], "Executive") OR CONTAINS([Program Type], "Golf") OR CONTAINS([Program Type], "Internal") OR CONTAINS([Program type], "Talent") THEN "50000" Else [Actual in-person attendees] ENDIF
IF (IsEmpty([Actual in-person attendees]) AND DATETIMEPARSE([End_date], "%Y-%m-%d") <= DATETIMEADD(DATETIMENOW(), -7, "days") AND [Program type] = "Alumni event" OR [Program Type] = "Client event" OR [Program Type] = "Community Impact" OR [Program Type] = "Employer of Choice" OR [Program Type] = "Executive education (KPMG Learning Team use only)" OR [Program Type] = "Golf event" OR [Program Type] = "Internal meeting" OR [Program Type] = "Talent acquisition") THEN "50000" ELSE [Actual in-person attendees] ENDIF