AZdesertdog
IS-IT--Management
Using CR10/CE10-MSSQL2k
I'm trying to write a formula that looks at several fields in each row. The fields are text fields, named- Q1,Q2,Q3,Q4. In my formula, I want a "1" if ANY of the 4 fields have a "No" value. Some of them have Nulls, some "Yes"s and a few "N/A"s scattered in. I only care about the "No" values and it doesn't matter if 1 or all of the fields have a "No". The only possiblity is for my desired formula field is a 1 or 0. I've tried several "If/Then" versions but can't seem to get it right. Any help appreciated.
trip# Q1 Q2 Q3 Q4 Desiredformula
1234 No Yes N/A 1
1235 No 1
1236 Yes 0
1237 No 1
1238 Yes No No 1
1239 No 1
1240 N/A 0
1241 No No 1
1242 Yes 0
9 Total Trips 6 Total Errors
I'm trying to write a formula that looks at several fields in each row. The fields are text fields, named- Q1,Q2,Q3,Q4. In my formula, I want a "1" if ANY of the 4 fields have a "No" value. Some of them have Nulls, some "Yes"s and a few "N/A"s scattered in. I only care about the "No" values and it doesn't matter if 1 or all of the fields have a "No". The only possiblity is for my desired formula field is a 1 or 0. I've tried several "If/Then" versions but can't seem to get it right. Any help appreciated.
trip# Q1 Q2 Q3 Q4 Desiredformula
1234 No Yes N/A 1
1235 No 1
1236 Yes 0
1237 No 1
1238 Yes No No 1
1239 No 1
1240 N/A 0
1241 No No 1
1242 Yes 0
9 Total Trips 6 Total Errors