How can I turn part of the Excel data to columns to get a desired output?

后端 未结 2 456
温柔的废话
温柔的废话 2020-12-07 04:45

For eg - Say I have data in the following format -

Current Format

I would need the data to be formatted in the following f

2条回答
  •  暖寄归人
    2020-12-07 05:18

    What you want to do is called:

    Unpivot:

    1. Select the data and on the Insert menu choose Table
    2. On the Data menu click From Table/Range
    3. The query window will open. Choose the columns you need to extract. With your data the columns to highlight are "Type" and "Number of Cases"
    4. On the Tranform menu choose Unpivot Columns
    5. If the data looks right now, close the Query Editor (accepting changes).

    Examples here: Unpivot Excel Data

    img

提交回复
热议问题