使用具有多个关联值的关键字段转置数据

时间:2016-07-21 15:25:36

标签: excel excel-formula excel-2013

我有一个带有ID号的键列,对于行中的每个ID号,不同数据列中最多可能有5个值,所以它看起来像这样:

ID   Unrelated Column   Unrelated Column   Data1   Data2  Data3  Data4  Data5
001  Ignore this data   Ignore this Data   red     blue                     
002  Ignore this Data   Ignore this Data   yellow  green  orange red
003  Ignore this Data   Ignore this Data    
004  Ignore this Data   Ignore this Data   purple  blue   black

我想要做的是在另一个工作表中使用公式,以不同的方式显示这些数据:

ID        Data
001       red
001       blue
002       yellow
002       green
002       orange
002       red
004       purple
004       blue
004       black

谢谢,

林赛

1 个答案:

答案 0 :(得分:1)

应用解决方案here,然后删除空白的行' Value'那些"无关列"对于'专栏'并删除'列'。