Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
247 views
in Technique[技术] by (71.8m points)

excel - How to split data in one column into multiple columns based on duplicates in another column

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

How I need it to display:

Column A    Column B    Column C   Column D    Column E

Gary          1         Gold       Silver      Bronze

Any help would be great !

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

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

Then copy paste table e:f as transpose values to get the desired layout


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...