Hi everyone,
I'm not sure if this is simple and I'm just complicating things but here it goes.
I have this raw data format where each column represents a variable (there are many but I'll just write one for simplicity) and each row an occurrence (it's actually a respondent in a survey)
My objective is to count how many a's and b's and so on exist in each variable
variable 1 a,b,c,d b,d a,b,d
So I thought that maybe I could create 4 columns under variable 1 with headers a b c and d, perform a text to columns separated by a comma and then verify if occurance x has any a, b, c or d
The problem is that the a,b,c and d will not match the headers because they are not ordered correctly, so I don't know what kind of function I could apply here!
e.g.:
a b c d a b c d b d a b d
Do you have any suggestion? Sorry but I'm struggling in explaining the problem any better, that's how lost I am.
Bookmarks