How to align duplicates on the same rows in Excel

前端 未结 2 1952
小蘑菇
小蘑菇 2020-12-08 06:20

This is a simple question that I cannot answer.

I have two columns like these in Excel:

Col1    Col2
 A       C
 B       I
 C       E
 D       D
 E           


        
2条回答
  •  误落风尘
    2020-12-08 06:33

    Without VBA

    • in C1 put =VLOOKUP(A:A,B:B,1)
    • if you have multiple columns, in E1 put =VLOOKUP(A:A,B:D,2) .... the last digit should change to 1(col B), 2(col C) 3(Col D) accordingly.

    You will have to copy and paste this for each array you are looking for in the separate columns accordingly, but you should be able to copy and paste down a column easily

    Hope this helps. Please let me know if you have any questions

提交回复
热议问题