Arrange data from a 24hr cycle to by day rather than by hour

edwardzbrown

New Member
Joined
Jun 12, 2017
Messages
20
Hello,

My power company exports my energy use by hour. I want to arrange years worth of data by day with all the hours of a day to the right of that day's row. That way I can compare energy use by hour and even by day of the week. What would be the best way to go about organizing this?


This is what I want:
[TABLE="width: 655"]
<colgroup><col><col><col span="8"></colgroup><tbody>[TR]
[TD]Weekday[/TD]
[TD] Date[/TD]
[TD="align: right"]12:00 AM[/TD]
[TD="align: right"]1:00 AM[/TD]
[TD="align: right"]2:00 AM[/TD]
[TD="align: right"]3:00 AM[/TD]
[TD="align: right"]4:00 AM[/TD]
[TD="align: right"]5:00 AM[/TD]
[TD="align: right"]6:00 AM[/TD]
[TD="align: right"]7:00 AM[/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD="align: right"]1/5/2018[/TD]
[TD="align: right"]0.87[/TD]
[TD="align: right"]1.18[/TD]
[TD="align: right"]0.91[/TD]
[TD="align: right"]0.67[/TD]
[TD="align: right"]0.71[/TD]
[TD="align: right"]1.07[/TD]
[TD="align: right"]0.62[/TD]
[TD="align: right"]4.81[/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]0.69[/TD]
[TD="align: right"]0.64[/TD]
[TD="align: right"]1.02[/TD]
[TD="align: right"]0.9[/TD]
[TD="align: right"]0.56[/TD]
[TD="align: right"]0.6[/TD]
[TD="align: right"]1.29[/TD]
[TD="align: right"]0.99[/TD]
[/TR]
</tbody>[/TABLE]

This is what I have:
[TABLE="width: 200"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]11:00[/TD]
[TD="align: right"]0.61[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]12:00[/TD]
[TD="align: right"]1.5[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]13:00[/TD]
[TD="align: right"]3.94[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]6.48[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]15:00[/TD]
[TD="align: right"]5.11[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]16:00[/TD]
[TD="align: right"]5.21[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]17:00[/TD]
[TD="align: right"]3.06[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]18:00[/TD]
[TD="align: right"]7.26[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]19:00[/TD]
[TD="align: right"]2.48[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]20:00[/TD]
[TD="align: right"]1.3[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]21:00[/TD]
[TD="align: right"]0.94[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]22:00[/TD]
[TD="align: right"]1.2[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2018[/TD]
[TD="align: right"]23:00[/TD]
[TD="align: right"]0.88[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]0:00[/TD]
[TD="align: right"]0.65[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]1:00[/TD]
[TD="align: right"]1.93[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]2:00[/TD]
[TD="align: right"]5.01[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]3:00[/TD]
[TD="align: right"]0.82[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]4:00[/TD]
[TD="align: right"]0.75[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]5:00[/TD]
[TD="align: right"]0.73[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]1.13[/TD]
[/TR]
[TR]
[TD="align: right"]1/7/2018[/TD]
[TD="align: right"]7:00[/TD]
[TD="align: right"]0.65[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Ohh, I found a way that works. I used a data Filter. I filtered by each hour of the day, copy and paste it over into my spread sheet. I just needed to do this 24 times to import my entire data set. Not too terrible.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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