Creating dummy variable

Hi all,

Please is it possible to create a dummy variable that stores options selected from a single code and multiple code together and the all selected options can be referenced or piped into the next questions and repeat same questions for all options dropped in the dummy variable.

Thank you for your quick response and solution.

Welcome to the community, @Adebayoadek! Could you share with the community a small example so that the community would be able to understand your query and help you out if possible.

Survey.xlsx (23.3 KB)
Thank you Kal_Lam,

Kindly see attached the script.

My query is to create a dummy variable that stores options selected in q13, q13b, q13c and q14. then for q15 and q16, questions will be asked on each of the options s stored in the dummy variable.

Thank you.
Adebayo

@Adebayoadek, maybe you could use the if-statement to create a dummy variable as outlined in the post discussed previously:

And this post too:

Thank you so much. But I still don’t get a way out. Can anyone help check again for solution.

Thank you.
Adebayo

@Adebayoadek, would you be specific so that the community would be able to help you out?