Need help with power query unpivoting.

proficient

Well-known Member
Joined
Apr 10, 2012
Messages
745
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
Hello all,

Please check out the below screenshot of the normal table (there is an unnecessary break in each machine table) that I am getting from my colleague "DATA" along with the "DESIRED RESULT" that I want as the final result.

The data is in a regular excel table form and it would be time-taking to make official tables of each machine (a total of 16 machines) every time. I am looking forward to a code that will work if I convert the complete data into one sheet to save time by not making each machine an official excel table every time, Could anyone provide a code?

1666546388277.png
 
How do the data make it into the table? Does your colleague by any chance collect it from different files? That would be a good time to import from folder.The

I am getting the all machines' detail in one single sheet that was prepared manually.

I can share the original file if you want.
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I am not able to upload files on this computer. Select the data as it is below, i.e. M4:W13. Add the table to Power Query. Make sure that you uncheck the option saying that the table has headers. Then the code should work.

PROFICIENT
MNOPQRSTUVW
4MACHINE 1MACHINE 2MACHINE 3
5DATEARTICLEOUTPUTDATEARTICLEOUTPUTDATEARTICLEOUTPUT
644835ABC30044835BCD30044835EFG300
744836ABC50044836BCD50044836EFG500
844837ABC50044837BCD50044837EFG500
9
10DATEARTICLEOUTPUTDATEARTICLEOUTPUTDATEARTICLEOUTPUT
1144838HIG50044838KLM50044838PQR150
1244839PLK25044839KLM50044839PQR250
1344840PLK35044840KLM50044840PQR500
Sheet4
Cell Formulas
RangeFormula
M7:M8,U12:U13,Q12:Q13,M12:M13,U7:U8,Q7:Q8M7=M6+1
 
Upvote 0

Forum statistics

Threads
1,223,574
Messages
6,173,142
Members
452,501
Latest member
musallam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top