I'm trying to nest several columns into an If statement that utilizes both And and Or functions. I'm so far unable to come up with a function that works.
- If Act Conf Years OR Act Conf Months > 0 then output "Confinement"
- If Act Prob years OR Act Prob Months > 0 then output "Probation"
- If (Act Conf Years OR Act Conf Months > 0 ) AND (Act Prob years OR Act Prob Months >0) then output "Both"
The formula I came up with was:
However, that doesn't work. I know the issue is somewhere in the part after "Probation". But am not sure how to appropriately stack the OR and AND functions.
Alternatively, can this somehow be done with Power Query, Power Pivot, or some other add on?