Hi All,
I'm trying to write a checking formula to check responses are valid to a multiple choice question on a separate sheet, which isn't going my way.
I have attached an example Excel for reference. I'll just go straight into my problem.
Column A (NS_60_1_1) is a multiple response question and they can answer 1 - 9. Column B (NS_140_1_1) has a criteria of:
IF Column A = anything that isn't JUST <> 2, 3 or 7, then response should be in Column B (I will call this a valid response). If the response is JUST 2, 3 and/or 7 then Column B should be "NULL" (I will call this an invalid response).
So example responses (seperated by semi comma per response) for Col. A that would trigger Col. B are: 1; 4; 01,03; 04,07; 01,02,03,04,05,06,07,08,09; Example responses that would skip Col. B would be: 2; 3; 02,07; so on and so on.
For invalid responses, it's easy. it's just =IF(AND(OR(Service!$A2=2,Service!$A2=3,Service!$A2="02,03",Service!$A2="02,03,07",Service!$A2="02,07",Service!$A2="03,07"),Service!$B2="NULL"),"TRUE1","ERROR") Because there aren't many combinations for the responses (responses ALWAYS go from lowest to highest, never in another order). For valid responses there are too many however. I would be typing something like: Service!$A2="01,04",Service!$A2="01,02",Service!$A2="04,05,07",Service!$A2="02,04,05,06,07",Service!$A2="02,04" so on and so on.
My initial solution was: =IF(AND(OR(Service!$A2=2,Service!$A2=3,Service!$A2="02,03",Service!$A2="02,03,07",Service!$A2="02,07",Service!$A2="03,07"),Service!$B2="NULL"),"TRUE1",IF(AND(OR(Service!A2="?1*",Service!A2="*4*"),Service!$B2<0),"TRUE2","ERROR")) What this should do is return TRUE1 if invalid responses are chosen, and TRUE2 if invalid responses are chosen, with ERROR there to show all quality issues with the raw data.
However the wildcards in the 2nd IF function aren't doing with I expect....
Some useful things to know: valid responses will always contain either 1, 01, 02, 03, 4 or 04. If someone responds with 05 or on wards, it will invalidate the whole questionnaire.
Invalid responses will never contain numbers other than 2, 3, 02, 03 or 07.
Can anyone help?
Thank you!
Gavin
Bookmarks