Here's one example at an easier level.
Disadvantage is it calls multiple sed statements. But it's easier to understand if you're just starting out.
cat testdata
user1,YNNNNNNNNNNNNNNNNNNN
user2,YNNNNNNYYNNNNNNNNNNN
cat testdata | tr "," " " | sed -e 's/Y/Y /g' | sed -e 's/N/N /g' | sed -e 's/ /,/g' | sed -e 's/$,//g'
Output
user1,Y,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
user2,Y,N,N,N,N,N,N,Y,Y,N,N,N,N,N,N,N,N,N,N,N
Approach
Decided a space will be the final Field delimeter.
So replaced that first comma with a space
tr "," " "
Then put a space beside all Y's and N's
sed -e 's/Y/Y /g' | sed -e 's/N/N /g'
Then replaced all spaces with a comma
sed -e 's/ /,/g'
And then finally removing the comma that would be left at the end of the string from the previous step
sed -e 's/,$//g'
The Devil is in the detail.