问题描述
是否有一种方法可以基于重复的单元格将一列中的数据拆分为单独的列,因此我只看到数据的前一行:
Is there a way to split data in one column into separate columns based on a duplicate cell, so that I only see 1 row for the data ex:
Column A Column B Column C
Gary 1 Gold
Gary 1 Silver
Gary 1 Bronze
我如何显示它:
Column A Column B Column C Column D Column E
Gary 1 Gold Silver Bronze
任何帮助都会很棒!
推荐答案
说明-第一个表是原始表,在下一行中粘贴唯一名称(加里,本)作为转置,在下面的单元格中插入索引匹配公式,然后向下拖动,在下一列中编写类似的公式然后向下拖动.
Explanation - First table is the original table, paste unique names ( Gary, Ben) as transpose in the next rows , insert the index match formula in cell below and drag down,write similar formula in next column and drag down.
使用此公式INDEX($ C:$ C,MATCH(F $ 2,$ A:$ A,0)+ ROW(1:1)-1,0)或查找偏移量公式.C列包含金色,银色细节,a列包含名称.F2将gary粘贴为下面的转置
use this formula INDEX($C:$C,MATCH(F$2,$A:$A,0)+ROW(1:1)-1,0) or look for offset formula.Column C contains gold,silver detail and column a contains names. F2 is gary pasted as transpose below
Gary Ben [ transpose of all unique names]
formula formula
formula formula
然后复制粘贴表e:f作为转置值以获得所需的布局
Then copy paste table e:f as transpose values to get the desired layout
这篇关于如何根据另一列中的重复项将一列中的数据拆分为多列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!