VBA to quickly transpose data

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Guys,

I have data set that i receive daily that comes in this format

1593527146918.png


What i need to do is transpose the data so it looks like this

1593527316344.png


So the Time and data transposed by column for each day

This is taking me forever to do and would really appreciate your help

Thank You
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Did you try the macro from post #9?
Or were you able to solve your problem with the query?
 
Upvote 0
Hi Dante - thank you

I trued both methods and used your VBa version as my colleagues understand how to manipulate That but i do intend to use powerqueryin future...

there was 1 problem i realised afterwards was that columns A to D had merged cells and wouldn’t work so manually i had to unmerge the cella and then all thw blank cells below it filled with the cell above (im sure this could be done in code)

thanks once again
 
Upvote 0

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

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