[英]Turn multiple columns in excel into 1 column with unique value
I have a list of questions as series of columns in excel with around 10,000 rows. 我有一个问题列表,这些列是excel中具有大约10,000行的一系列列。 Yes or No is denoted by a 0 or 1 and only 1 question can be selected for any give row.
是或否用0或1表示,任何给定行只能选择1个问题。 What I'd like to do is take all these columns and merge them into 1 column where the value of each question is assign to a number instead.
我想做的是将所有这些列合并为1列,其中每个问题的值都分配给一个数字。 So for instance I have:
例如,我有:
Q1 Q2 Q3 Q4 Q5
0 1 0 0 0
0 0 0 1 0
0 0 1 0 0
0 1 0 0 0
1 0 0 0 0
So instead I'd like to assign each question to a value like 因此,我想将每个问题分配给一个类似的值
Q1 = 1 Q2 = 2 Q3 = 3 Q4 = 4 Q5 = 5 Q1 = 1 Q2 = 2 Q3 = 3 Q4 = 4 Q5 = 5
and them merge it into one column like: 然后将它们合并为一列,例如:
Questions
2
4
3
1
Is there a decently simple way to accomplish this? 有没有一种很简单的方法可以做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.