Solved
Multiple IF(FIND(OR statements
Hi everyone,
I've got a set of criteria to score the program length that states the following: "A faculty-led program for any term is 3 points. An interterm program longer than 3 weeks is 3 points. A summer program longer than 6 weeks is 3 points. An interterm program longer than 11 days, but less than three weeks is 2 points. A summer program longer than 21 days, but shorter than 41 days is 2 points. An interterm program shorter than 11 days is 1 point. A summer program shorter than 21 days is 1 point. In translating that to a nested combination of IF(FIND(OR arguments, my syntax got off, or, alternatively, resulted in all points being wiped out or everyone being assigned 3 points. I've included a few versions of my formula text below. Should I be using a FIND( statement for each IF( statement?
v1
IF(
Find(
"interterm",{term}),
OR
({Smith faculty-led?}="Yes",
{Program Length}>=20),
"3",
IF({Program Length}>11,"2",
IF({Program Length}<11,"1"),
Find(
"summer",{term}),
OR
({Smith faculty-led?}="Yes",
{Program Length}>=41),
"3",
IF({Program Length}>21,"2",
IF({Program Length}<21,"1",
))))
v2
IF(
Find(
"interterm",{term},
OR({Smith faculty-led?}="Yes",
{Program Length}>=20,"3"),
IF({Program Length}>11,"2"),
IF({Program Length}<11,"1")),
Find(
"summer",{term},
OR({Smith faculty-led?}="Yes",
{Program Length}>=41,"3"),
IF({Program Length}>21,"2"),
IF({Program Length}<21,"1")
))
Best answer by pressGO_design
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"))))
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
