Hi all,
I am trying to save the following problem: a surveyor has supplied me with a dataset that contains a column representing the return of a set of checkboxes in a survey. So, for example, in an option-set containing 11 options, the checkboxes are numbered 1 to 11. For every checked box its value is added to a single cell, comma separated (e.g. 1,5,6,9,10). My challenge is to extract the values from the commas separated list, using a formula and convert them into boolean values. So, with 11 options in my example, it would result in 11 columns containing boolean values (1=checked, 0 unchecked). I explored using IF, COUNTIF/COUNTIFS and SUBSTITUTE but I run into a few problems:
- only checked options return a result, so I can't use the positions as a means to identify the values;
- not all cells have multiple values, so there is not always a comma;
- adding wildcards doesn't seem to work. I end up with false positives for column 1, as values 10 and 11 are also identified;
- I would like a future proof solution, as I cannot be certain that the checkbox results are ordered (ascending/descending).
I have made an example worksheet to illustrate the problem. I am sorry if this would seem basic stuff to some of you, but I am stuck. Many thanks in advance for giving it your thought and attention.
Jan-Willem
Bookmarks