Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

IF AND formula that ignores one criteria

Topic Labels: Formulas
Solved
Jump to Solution
179 5
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m trying to create an IF statement that would return a different result even if something matches the original criteria. I have Client ABC that doesn’t fit into the regular payment schedule, so I want the value “123” to be put as their payment and the have the rest of the clients calculated based on the formula. The problem is that Client ABC has values in each of the computed fields, so the value of those fields is being returned instead of 123. I’ve tried a variety of things without any luck. Thanks for anyone who can help!

If this:

IF({Client Name}=“ABC”),123)

If not:

IF({Payment Schedule}=“Annual”,IF({Contract Length}>=36, 5*{Field 1}))
&IF({Payment Schedule}=“Annual”,IF({Contract Length}=24, 4*{Field 1}))

1 Solution

Accepted Solutions

Okay. Trying to disentangle that ~~& ~~ spaghetti, I come up with this:

IF({Client Name}="ABC",123,
   IF({Payment Schedule}="Annual",
       IF({Contract Length}>=36, 5*{Field 1},
       IF({Contract Length}=24, 4*{Field 1}))
   )
)

Note that, as it is, the formula will do nothing for Contracts ranging between 25 and 35 months, or shorter than 24 months.

See Solution in Thread

5 Replies 5

Hi Nicole,
You’re using typographic double quotes “ ” but those aren’t understood by the formula editor.
Use simple double quotes instead: " "

That’s just a cut and paste error; I’m using the quotes you suggested. The formulas work separately, but how can I combine them to get the result I need?

Sorry, the first statement had an extra ). This is the correct one
IF({Client Name}=“ABC”,123)

Okay. Trying to disentangle that ~~& ~~ spaghetti, I come up with this:

IF({Client Name}="ABC",123,
   IF({Payment Schedule}="Annual",
       IF({Contract Length}>=36, 5*{Field 1},
       IF({Contract Length}=24, 4*{Field 1}))
   )
)

Note that, as it is, the formula will do nothing for Contracts ranging between 25 and 35 months, or shorter than 24 months.

That worked! Thank you!