Video 00142 Horizontal list to Vertical list (layered transpose)

We don’t always find out how data got twisted into awkward forms. Our job is to fix it by normalizing, unwinding, transposing, etc. Once the data is in the correct format we can then get to the real job of extracting meaning from it.


In this case, a member of Mr Excel’s forum was asking for a VBA solution to a “layered transpose” data issue. WHAT IS THAT? I’ll explain…

He had data in this layout…

000142 Original Format

and needed to re-arrange it into this…

000142 Desired Format


VBA Solution

For VBA solutions here’s the link to Mr Excel’s forum. It’s a great forum with so many Excel experts. If you haven’t already registered then you should!


Formula Solution

I solved this challenge with formulas. For repetitive long term cases (especially with large data sets) VBA is usually the better way to go. Sometimes a formula based solution has benefits. For example, it’s often easier to explain step by step formula solutions to non technical people.

Download my Excel file here or from my OneDrive.


Does My Dog Prefer VBA or Power Query?

For some reason Cali kept barking when I tried to record the video today.
She didn’t bark or want to play fetch when I was watching TV.
Is she trying to tell me something?
Could there be an easier formula solution? Maybe Cali prefers a VBA or Power Query solution.
I bet Mike Girvin & Ken Puls could solve this using Power Query.







Watch My YouTube Video

YouTube Video

Can you think of an easier and/or more efficient solution. Remember: the solution should be ‘readable’ in logical steps.

Do You Have A Better Formula Solution?

If so, leave a comment below.


Better Solution Update!

Even though I was asking for alternative formula solutions Oz du Soleil reminded me how incredible Excel’s Power Query (aka ‘Get & Transform’) feature is.

In his Video, Oz demonstrates how easily ‘Get & Transform’ correctly re-arranges the data. Knowledge is power! Thanks Oz!


Learn With Me!

Last week I signed up for Power Query Academy ! Join me in this adventureGet & Transform can do so many amazing things to fix your data and save you time! And it’s a free tool!



About Me

My name is Kevin Lehrbass. I’m a Data Analyst.

In 2017 I watched several Power Query videos. It’s an amazing tool! This year I’ve enrolled in Power Query Academy!

Check out my YouTube videos and my blog posts.

20 Comments Video 00142 Horizontal list to Vertical list (layered transpose)

  1. Pingback: Video 00148 Insert Rows & Cascade Numbers | My Spreadsheet Lab

  2. Pingback: Video 00147 Conditionally Add Checkboxes using VBA | My Spreadsheet Lab

  3. Pingback: Video 00149 Alphabetize Challenge (Oz001) | My Spreadsheet Lab

  4. Pingback: Video 00150 Sequential Keyword Search Dog Chases Squirrel | My Spreadsheet Lab

  5. Pingback: Video 00122 Normalizing Exported Data | My Spreadsheet Lab

  6. Pingback: Video 00135 Cali Data Cleanup | My Spreadsheet Lab

  7. Pingback: Having Fun with Custom Number Formats | My Spreadsheet Lab

  8. Pingback: Re-arrange, Rotate, Transpose, Twist, Cascade the data! | My Spreadsheet Lab

  9. Pingback: Extract Data That Could Be Anywhere! | My Spreadsheet Lab

  10. Pingback: How Many Unique Visitors To Site Each Day? | My Spreadsheet Lab

  11. Pingback: Brad's techniques to find Excel content | My Spreadsheet Lab

  12. Pingback: Video: Solution_Add Sporadic Totals | My Spreadsheet Lab

  13. Pingback: How to use vlookup formula in Excel | My Spreadsheet Lab

  14. Pingback: My Favorite Excel Tips From Other Sites Part 2. | My Spreadsheet Lab

  15. Pingback: Liam Bastick from | My Spreadsheet Lab

  16. Pingback: Video 00153 All Possible Pairs from List of Names | My Spreadsheet Lab

  17. Pingback: Unstacking Data with Oz du Soleil | My Spreadsheet Lab

  18. Pingback: 00142 Horizontal list to Vertical list (layered transpose) | CPU 4G

  19. Pingback: Video 00159 Create unique and sorted text list | My Spreadsheet Lab

  20. Pingback: Index of Ignorance | My Spreadsheet Lab

Leave a Reply

Your email address will not be published. Required fields are marked *