Dec 14, 2022 01:38 PM
Solved! Go to Solution.
Dec 20, 2022 03:11 PM
Good heavens. That gin & tonic is getting to me... Use this formula instead of the one above.
IF({Faculty-Led?}="Yes", 3, IF(OR(AND(FIND("Interterm", Term), {Program Length (Days)}>21), AND(FIND("Summer", Term), {Program Length (Days)}>42)), 3, IF(OR(AND(FIND("Interterm", Term), {Program Length (Days)}>11, {Program Length (Days)}<21), AND(FIND("Summer", Term), {Program Length (Days)}>21, {Program Length (Days)}<41)),2, IF(OR(AND(FIND("Interterm", Term), {Program Length (Days)}<11), AND(FIND("Summer", Term), {Program Length (Days)}<21)), 1,"Oops"))))
Dec 14, 2022 04:36 PM
The FIND statement doesn’t hold to subsequent IFs, so - yes, you need a FIND for each IF. But you can do it without the FINDs by having the first IF be faculty-led=3 and then using a series of IF(AND instead of IF(OR. So….
IF(Smith faculty-led?}="Yes", 3,
IF(AND({term}=“interterm”, Program Length}>=21), 3,
IF(AND({term}=“interterm”, {Program Length}<11), 2,
IF(AND({term}=“interterm”, Program Length}>11), 1,
……
Dec 14, 2022 06:02 PM
Addendum: you can do OR(AND for the 3. 2, 1 points if you want to.
Dec 20, 2022 08:46 AM
Hi, thanks for the reply. That doesn't quite seem to have done it. See, I think part of the issue is that the terms are specific to the year, but we're trying to future-proof this a bit. For example, we have Interterm 2023, and next year, there will be a "Term" value called Interterm 2024. Because of that, I added FIND( to each of the lines, but it's actually just not saving the formula now, even though Airtable says the field has been updated. If it helps, here's a link to a shared view of our table. It reverts to the simpler version here:
New with find formulas
Dec 20, 2022 03:08 PM
Dec 20, 2022 03:11 PM
Good heavens. That gin & tonic is getting to me... Use this formula instead of the one above.
IF({Faculty-Led?}="Yes", 3, IF(OR(AND(FIND("Interterm", Term), {Program Length (Days)}>21), AND(FIND("Summer", Term), {Program Length (Days)}>42)), 3, IF(OR(AND(FIND("Interterm", Term), {Program Length (Days)}>11, {Program Length (Days)}<21), AND(FIND("Summer", Term), {Program Length (Days)}>21, {Program Length (Days)}<41)),2, IF(OR(AND(FIND("Interterm", Term), {Program Length (Days)}<11), AND(FIND("Summer", Term), {Program Length (Days)}<21)), 1,"Oops"))))
Dec 21, 2022 07:03 AM
This appears to have done it with some minor edits like column names and substituting ">" for ">=" on the first program length formula.
I like the "oops" touch at the end, that was helpful! Enjoy your G&Ts!
Dec 21, 2022 08:28 AM
Thanks! And "oops" is the unsung hero of all of my formulas. Sometimes, when I'm super-frustrated, I replace it with curse words. 😂🤣