Select to view content in your preferred language

IF and Then Statement Survey123

172
2
Jump to solution
2 weeks ago
ablum
by
Emerging Contributor

I'm trying to write a calculation for a Status cell based multiple other cells.

Basically if cells A2, B2, C2, D2, E2 ='Pass' or 'Partial' then Status will equal 'PASS', but if any of them equal Fail, one 'Fail' should overwrite all Passes.

Example:

A2 ='Pass' or 'Partial', B2 ='Pass' or 'Partial', C2 ='Pass' or 'Partial', D2 ='Pass' or 'Partial', E2 ='Pass' or 'Partial'

Status='PASS'

Example 2:

A2 ='Pass' or 'Partial', B2 ='Pass' or 'Partial', C2 ='Pass' or 'Partial', D2 ='Pass' or 'Partial', E2 ='Fail'

Status='FAIL'

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

It should be pretty easy with an if function. Rather than function the cells, use the field name. Try this:

if(${field1} = 'Fail' or ${field2} = 'Fail' or ${field3} = 'Fail' or ${field4} = 'Fail' or ${field5} = 'Fail', 'FAIL', 'PASS')

- Josh Carlson
Kendall County GIS

View solution in original post

2 Replies
jcarlson
MVP Esteemed Contributor

It should be pretty easy with an if function. Rather than function the cells, use the field name. Try this:

if(${field1} = 'Fail' or ${field2} = 'Fail' or ${field3} = 'Fail' or ${field4} = 'Fail' or ${field5} = 'Fail', 'FAIL', 'PASS')

- Josh Carlson
Kendall County GIS
ablum
by
Emerging Contributor

That worked, thank you!

0 Kudos