How to convert a long form table to wide form table in Excel?

前端 未结 2 488
北海茫月
北海茫月 2021-01-17 02:07

A picture is worth a thousand words. Let\'s say in one sheet I have the following table:

\"enter

2条回答
  •  天涯浪人
    2021-01-17 03:09

    I can see another approach as well. Add two columns Count and Key.

    Add the formulas and expand:

    C2 -> =COUNTIF($B$2:B2;B2)
    D2 -> =B2&"|"&C2
    G2 -> =IFERROR(INDEX($A:$A;MATCH($F2&"|"&COLUMN(A1);$D:$D;0));"")
    

提交回复
热议问题