Check out the LimeSurvey source code on GitHub!

Extending the countif() function

More
4 years 1 week ago #92744 by LSCitizen
Hello -
I need some help. I have a series of questions(this series of questions repeats 5 times):

Q1. How old are you? (numerical input)
Q2. Would you like to participate in our survey? (IF Q1 greater than 18; yes/no question)
Q3. Why not? (If Q2 = no)
Q4. Thanks for your time (If Q1 less than 18).

I want to be able to count the number of Q1 values that are greater than 18. Is there a way to extend the countif() function to do this? Or this another way to do this?

Please Log in to join the conversation.

More
4 years 1 week ago #92745 by TMSWhite
Use the countifop() function. For example, say your Q1-like questions are Q1, Q11, Q21, Q31, ...
countifop(">",18,Q1,Q11,Q21,Q32)

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form