Nov 22, 2023 10:11 AM
Hello -
Situation: Volunteers on the team have a 2-year tenure and when those 2 years are up, they can opt-in for 1 more year. My table shows their "start date" and then I have a column showing their "end date" using this formula
Solved! Go to Solution.
Nov 23, 2023 07:55 AM
Hi,
Formula expression is case-sensitive. If your single-select 'Yes' has capital letter, IF({Field}='yes'.. will be FALSE.
You should adjust the case, or do it like IF(UPPER({Field})='YES'...
Nov 22, 2023 01:39 PM
Nov 22, 2023 03:24 PM - edited Nov 22, 2023 03:24 PM
@Harsh2 I inserted the formula and didn't get an error message (aka the formula was accepted) but it still doesn't generate a new date if the drop down is Yes. Any other thoughts?
Nov 22, 2023 03:53 PM
Hi @Ashley_B
Wouldn't it be like this?
IF(
{1+ YEar Opt In}='yes',
DATEADD({Current WON Role Start Date}, 3, 'years'),
DATEADD({Current WON Role Start Date}, 2, 'years')
)
Does the "1+ Year Opt In" field have options other than Yes and No? If not, I think a Checkbox field would be more appropriate for the UI.
If you change it to a checkbox field, it will look like this.
IF(
{1+ YEar Opt In},
DATEADD({Current WON Role Start Date}, 3, 'years'),
DATEADD({Current WON Role Start Date}, 2, 'years')
)
Nov 22, 2023 10:38 PM
@Sho I'd like to keep it as a yes/no option. If they decide not to opt-in, then I need to be alerted to start the roll off plan for them. So this will help me have a clear record.
I tried your formula and it generated the exact same date that I have in the 'tenure' column. If I selected 'yes', the date didn't change.
Nov 23, 2023 07:55 AM
Hi,
Formula expression is case-sensitive. If your single-select 'Yes' has capital letter, IF({Field}='yes'.. will be FALSE.
You should adjust the case, or do it like IF(UPPER({Field})='YES'...
Nov 26, 2023 05:28 PM
🤦🏻♀️ Thank you @Alexey_Gusev