Forum Discussion
AlexBennett3
5 years agoQrew Trainee
Maybe a Case() Statement for this? I'm just not sure how to reformat this code to not effect the other if statements and only the Plumbing.
------------------------------
Alex Bennett
------------------------------
------------------------------
Alex Bennett
------------------------------
- AustinK5 years agoQrew CommanderThe issue is likely in the order your lines are listed. The way Quick Base works with a formula is it takes the first thing that is true and runs with that while not bothering to read the rest of your formula.
If([Plumbing Duration] > 0, ToDate(WeekdayAdd(ToWorkDate([Start(3)]), [Plumbing Duration])),
If([Plumbing Duration] > 4, ToDate(WeekdayAdd(ToWorkDate([Start(3)]), [Plumbing Duration]+1))
Looking at those 2 lines the only thing that would ever be true is the first line. Because plumbing duration above 0 is always true even if it is also above 4. Swap those 2 lines with the > 4 line on top and at least the plumbing part may start working. I did not test this but hopefully my explanation on how the formula works helps you fix this if my suggestion does not.