Forum Discussion

HenryJS's avatar
HenryJS
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Add Column: If statement

Hi all,   How can I add a column that returns "Yes" if the following statements are true: CSCS is blank OR CSCS is in the next 1 Month OR Passport is blank OR Passportin the next 1 Month OR R...
  • az38's avatar
    6 years ago

    Hi HenryJS 

    try

    Column = IF(
    ISBLANK([CSCC]) ||
    DATEDIFF(TODAY(), [CSCC], MONTH) <= 1 ||
    ISBLANK([Passport]) ||
    DATEDIFF(TODAY(), [Passport], MONTH) <= 1 ||
    [Reference1] = "No" || 
    [Reference2] = "No"
    ,
    "Yes",
    "Other"
    )