SOLVED

Help with IF statement

Copper Contributor
Hello,

I need help writing an IF statement with multiple AND/OR conditions that will achieve the results listed in the numerator column of the attached file. I need the IF statement to capture the criteria listed in the sample file.

Any suggestions?
3 Replies
best response confirmed by AL789 (Copper Contributor)
Solution

@AL789 

That could be like 

=IF( (C2="Yes")*ISNUMBER(B2)*(D2=0),B2,IF( (C2="No")*ISNUMBER(B2)*ISNUMBER(D2),D2,"DKNS"))

in assumption that total number of unit couldn't be negative and if no one condition is met then "DKNS"" 

Thank you! Are you able to write an if statement for the denominator column as well?

See attached for criteria and results needed.

@AL789 

Perhaps 

=IF( ((C2="Yes")+(C2="No"))*ISNUMBER(B2)*ISNUMBER(E2),B2,"DKNS")

 

1 best response

Accepted Solutions
best response confirmed by AL789 (Copper Contributor)
Solution

@AL789 

That could be like 

=IF( (C2="Yes")*ISNUMBER(B2)*(D2=0),B2,IF( (C2="No")*ISNUMBER(B2)*ISNUMBER(D2),D2,"DKNS"))

in assumption that total number of unit couldn't be negative and if no one condition is met then "DKNS"" 

View solution in original post