I have a problem which I can solve using PowerQuery but I need a formula to do it as PowerQuery doesn't allow me to update the data set with new headers and columns.
Raw data
1.jpg
From my raw data, I've highlighted the columns I need. Note that the patterns for the columns repeat. In the raw data I've listed 2 example Dept (Dept1A and Dept2A). From column D, you can assume the pattern continues like Dept1ALevel1, Hour - Dept1ALevel1, Comment - Dept1ALevel1 and so forth up to Dept20ALevel20.
I've also attached my desired result in my excel.
If someone knows how do i translate my power query commands regardless if the headers change that would be very helpful.
Thank you
Bookmarks