Unstack and Restack Data in Excel

QI Macros Makes it Easy to Stack & Unstack Data in Excel

You can find the restacking and unstacking tools in the Data Mining section of the QI Macros menu

To use the restacking and unstacking tools:

  1. Click and drag over your data to select it.
  2. Click on QI Macros menu and select the restack/unstack function you want.
  3. Answer the prompts and QI Macros will reorganize your data for you.

Stack Data by Columns

Sometimes you need to stack several columns of data into fewer columns or even into one column. QI Macros will prompt you for how many columns of data you want to end up with. In this example, we chose "1". QI Macros leaves the original data and makes a copy into the new format:

Data Before

data in columns

Prompt

number of columns prompt

Data After

data stacked into one column

Stack or Restack (i.e. from 6x6 to 3x12)

Stack or Restack takes any size table and switches the data into as many columns as you choose. You can increase or decrease the number of columns:

Data Before 6x6 Table


restack example before

Prompt


reorder table prompt

Data After 3x12 Table


restack table after

Unstack by Label

Unstack by Label takes any size table and unstacks it based on the labels in column A:

Data Before


unstack by label before

Data After


unstack by label after

 


Unstack by Multi Label

This functionality is designed to take a column of data that has multiple labels (e.g. entity and shift) and group it into columns for each label combination (i.e. entity - shift):

Data Before


unstack by multi label after

Data After


unstack by multi label after

Unstack by Subgroup

Using any number of columns, Unstack by Subgroup will use the number of samples per subgroup (in this case 4) and unstack the data. This function is generally used to go from one column to many:

Data Before


unstack by subgroup before

Prompt


unstack by subgroup prompt

Data After


unstack by subgroup after

Unstack Matrix to List

This functionality is designed to take a group of multi-column data that has multiple labels and groups them into a single-column list of data:

NOTE: Included in the April 2020 release, the Unstack Matrix is now able to process zeroes within your data set.

Data Before


unstack matrix before

Data After


unstack matrix after

 


Why Choose QI Macros Add-in for Excel

affordable

Affordable

  • Only $299 USD - less with quantity discounts
  • No annual subscription fees
  • Free technical support

easy to use

Easy to Use

  • Works right in Excel
  • Create a chart in seconds
  • Easy to customize & share charts

proven and trusted

Proven and Trusted

  • More than 100,000 users
  • In More than 80 countries
  • Five Star CNET Rating - Virus free