I have a column (called codes) with different repeated values separated by comma, I have to create as many columns as the unique values are and, for each row, put 1 in the column of the value present in the cell of the Codes column and 0 in all the others columns just created.
Codes |
---|
40.1, 54.06, 11.3 |
50.64 |
48.7, 40.1, 54.06 |
35.2, 50.64 |
I inserted the values on a list but I don't know how to build the columns and above all to write 1 or 0 in the columns. I have to get