If any respond is false between regarding columns, result will be "FAIL"

I am searching formula of appsheet like excel formula

Imagine that there is survey with yes or no answers. When the questions are selected yes or no, the point will change after every yes selecting.

How do i write formula under โ€œresultโ€ column such as excel formula =IFS(COUNTIF(D2:G2,โ€œFALSE)>0โ€,โ€œFAILโ€,โ€œDo something for every yes answersโ€)

if there is โ€œfalseโ€ between regarding columns, the result will display automatically โ€œFAILโ€. Otherwise, the all true answerโ€™s point will be 10. Image that there are 50 columns, and if there is even 1 no answer at first 10 columns, the result will be โ€œFAฤฐLโ€. If there is no any no answer first 10 columns, every yes answer will be 10 point. If there is โ€œno answersโ€ between 11 - 50 columns. Every yes answer will be 10 point.

Solved Solved
0 7 225
1 ACCEPTED SOLUTION

i think, to put 0 instead of FAIL is sensible as you said

I tried it as
IF(NOT(AND([IลžIKLAR-Farlar รงalฤฑลŸฤฑyor mu?];[IลžIKLAR-Yan ฤฑลŸฤฑklar รงalฤฑลŸฤฑyor mu?])), 0; IFS([IลžIKLAR-Farlar รงalฤฑลŸฤฑyor mu?],20)+ IFS([IลžIKLAR-Yan ฤฑลŸฤฑklar รงalฤฑลŸฤฑyor mu?],20))
This is solution.

View solution in original post

7 REPLIES 7

This is yes/no survey.
There is result column i will type the code in there.

In a result virtual column :

If(not(and([col1name];[col2name];โ€ฆ[col10name])); โ€œFAILโ€; โ€œsomething elseโ€)

Result virtual column type is number, how can i operate it with fail which is string and number?

I donโ€™t think that is a virtual column, it looks like a physical column in the file.

If you want to have your result in file, I would use a formula in the excel itself (gsheet in my case) , but then, your result will only be calculated and shown to user only after the sync occurs.

Virtual columns are โ€œliveโ€ , but not saved in file

Anyway, you could put 0 instead of fail ,make your column work with numbers only first.

Later, the 0 can be made to display a FAIL with a help of another virtual column.

I added now virtual column.

Does it make sense?

IF(NOT(AND([IลžIKLAR-Farlar รงalฤฑลŸฤฑyor mu?];[IลžIKLAR-Yan ฤฑลŸฤฑklar รงalฤฑลŸฤฑyor mu?])), โ€œFAฤฐLโ€; IFS([IลžIKLAR-Farlar รงalฤฑลŸฤฑyor mu?],20)+ IFS([IลžIKLAR-Yan ฤฑลŸฤฑklar รงalฤฑลŸฤฑyor mu?],20))

but if i select the first yes, it does not affect the result. The result is displaying default fail, after second chosing is yes, the total is changed as 40. I am not sure whether it works perfectly.

i think, to put 0 instead of FAIL is sensible as you said

I tried it as
IF(NOT(AND([IลžIKLAR-Farlar รงalฤฑลŸฤฑyor mu?];[IลžIKLAR-Yan ฤฑลŸฤฑklar รงalฤฑลŸฤฑyor mu?])), 0; IFS([IลžIKLAR-Farlar รงalฤฑลŸฤฑyor mu?],20)+ IFS([IลžIKLAR-Yan ฤฑลŸฤฑklar รงalฤฑลŸฤฑyor mu?],20))
This is solution.

Top Labels in this Space