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…
and needed to re-arrange it into this…
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!
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.
Does My Dog Prefer VBA or Power Query?
Watch My 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 adventure! Get & Transform can do so many amazing things to fix your data and save you time! And it’s a free tool!
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!