Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Extending the countif() function

More
10 years 1 month 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?
The topic has been locked.
More
10 years 1 month ago #92745 by TMSWhite
Use the countifop() function. For example, say your Q1-like questions are Q1, Q11, Q21, Q31, ...
Code:
countifop(">",18,Q1,Q11,Q21,Q32)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose