-2

I have an excel file with about 100 columns, each one with multiple entries. The header of each column is the location for all the items in that section. I am trying to transpose this data into a two column excel, the first the item # and the second the location (header from the sheet).

Any ideas? I was doing copy paste but it is slow and prone to errors.

Here is a sample:

Input

And I would like it to look like:

Output

Thanks

Alexis Olson
  • 38,724
  • 7
  • 42
  • 64
Danconia
  • 543
  • 2
  • 12
  • 28

1 Answers1

1

I think the Power Query unpivot approach is the simplest.

Select your data and click From Table under the Data tab:

From Table

Select all 3 columns and click Unpivot Columns under the Transform tab:

Unpivot

Reorder the and rename the columns if desired and then Close and Load.

enter image description here

Alexis Olson
  • 38,724
  • 7
  • 42
  • 64