add a column with an if statement

Glad to help. If I solved your problem, please consider marking my post as a solution.