How to stack Excel data in a single column

Let's assume that you have the following table in Excel:

Erik
Jeff
ElonElon
JeffBill

If you want to stack all items in one column:

  1. Data > Get data from Table/Range
  2. Select the whole table
  3. The Power Query Editor opens
  4. Press ctrl + A to select all the columns
  5. Transform > Unpivot columns

You'll have the following result:

AtributteValue
Columna1Erik
Columna3Jeff
Columna1Elon
Columna2Elon
Columna2Jeff
Columna4Bill
  1. Home > Right-click on the first column > Remove
  2. Right-click on the remaining column > Remove duplicates
  3. Close and load

Result:

Value
Erik
Jeff
Elon
Bill

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.