Formula - Yes, no, n/a

Highlighted
New Contributor

Formula - Yes, no, n/a

Hi,

How do I build a formula which states if a = b, then "not required", if a > b, then "yes", and if a < b, then "no".  

Thanks in advance

3 REPLIES 3
Highlighted
Certified Master Anaplanner

Re: Formula - Yes, no, n/a

Hi @CommunityMember113484 ,

 

A simple IF statement may be what you're looking for:


IF a = b THEN "not required" ELSE IF a > b THEN "yes" ELSE "no"

Please keep in mind, to optimize the formula, place the earliest exit first. 

Highlighted
New Contributor

Re: Formula - Yes, no, n/a

Thanks, worked great!
Highlighted
Frequent Contributor

Re: Formula - Yes, no, n/a

@CommunityMember113484 ,

 

There are several ways you can technically achieve this.

 

However, I would like to understand what is "a" and "b" in your statement?

 

Number formatted line items without any dimensions? if so, your formula looks something like this: if a=b then "not required"(text formatted line item) else if a>b then "yes" else "no"

 

Let me know if that helps.

 

Thanks,

Sandeep