Formatting

motherboard85

New Member
Joined
Feb 27, 2024
Messages
5
Office Version
  1. 2019
Hi I have this sheet showing utility consumption every 30 mins. What i would like to do is format this so each 30 min period is down the left hand column with the data and the corresponding consumption is next to that period. Like the second picture. Is there a quicker way to this than manually?

1709312213241.png

1709312336060.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try this. I had to truncate the hours columns due to size limitations of xl2bb, but this should work for you.
Book4
ABCDEFGH
100:30:0001:00:0001:30:0002:00:0002:30:0003:00:0003:30:00
201-01-202428443371185532
302-01-202455415598527668
403-01-20242184726813209
504-01-202433878656476740
605-01-202488576562109821
706-01-202498413395869922
807-01-202497794173435
908-01-20241696285394144
1009-01-20243263897693989
1110-01-202495109139379857
1211-01-202416119294451931
1312-01-20248274122695851
1413-01-202411102888387912
1514-01-202461997626823855
1615-01-20245918143957999
1716-01-202456919324921130
1817-01-202427639228985519
1918-01-20245554799199459
2019-01-20247061859543029
2120-01-202456975924526876
2221-01-20246085985884264
2322-01-2024342585108783
2423-01-202485886116068
2524-01-20243121290667922
2625-01-202492583850699772
2726-01-202490211310658259
2827-01-20244581188325271
2928-01-2024479083232896
3029-01-202491685394487248
3130-01-202489306353659158
3231-01-202485964295744666
3301-02-2024759794482784
34
35
36
37
3801-01-2024 00:30:00282024-01-01 00:3028
3901-01-2024 01:00:0044
4001-01-2024 01:30:0033
4101-01-2024 02:00:0071
4201-01-2024 02:30:0018
4301-01-2024 03:00:0055
4401-01-2024 03:30:0032
4501-01-2024 04:00:003
4601-01-2024 04:30:0096
4701-01-2024 05:00:0023
4801-01-2024 05:30:0063
4901-01-2024 06:00:0094
5001-01-2024 06:30:0087
5101-01-2024 07:00:0010
5201-01-2024 07:30:0068
5301-01-2024 08:00:007
5401-01-2024 08:30:0097
5501-01-2024 09:00:0089
5601-01-2024 09:30:0082
5701-01-2024 10:00:0090
5801-01-2024 10:30:0014
5901-01-2024 11:00:0043
6001-01-2024 11:30:0026
6101-01-2024 12:00:0075
6201-01-2024 12:30:007
6301-01-2024 13:00:007
6401-01-2024 13:30:0010
6501-01-2024 14:00:0095
6601-01-2024 14:30:0089
6701-01-2024 15:00:0093
6801-01-2024 15:30:0020
6901-01-2024 16:00:0029
7001-01-2024 16:30:004
7101-01-2024 17:00:0075
7201-01-2024 17:30:0087
7301-01-2024 18:00:0067
7401-01-2024 18:30:0042
7501-01-2024 19:00:007
7601-01-2024 19:30:0065
7701-01-2024 20:00:0078
7801-01-2024 20:30:0093
7901-01-2024 21:00:0067
8001-01-2024 21:30:0055
8101-01-2024 22:00:0012
8201-01-2024 22:30:0039
8301-01-2024 23:00:0091
8401-01-2024 23:30:0026
8502-01-2024 00:00:0094
8602-01-2024 00:30:0055
8702-01-2024 01:00:0041
8802-01-2024 01:30:0055
8902-01-2024 02:00:0098
9002-01-2024 02:30:0052
9102-01-2024 03:00:0076
9202-01-2024 03:30:0068
9302-01-2024 04:00:0016
9402-01-2024 04:30:0083
9502-01-2024 05:00:000
9602-01-2024 05:30:0070
9702-01-2024 06:00:0058
98
Sheet1
Cell Formulas
RangeFormula
A38:A97A38=INDEX($A$2:$A$33,ROUNDUP((ROW(A38)-37)/48,0))+ INDEX($B$1:$AW$1,1,MOD((ROW(A38)-38),48)+1)
B38:B97B38=INDEX($B$2:$AW$33,ROUNDUP((ROW($A38)-37)/48,0),MOD((ROW($A38)-38),48)+1)
D38D38=INDEX($A$2:$A$33,ROUNDUP((ROW(A38)-37)/48,0))+ INDEX($B$1:$AW$1,1,MOD((ROW(A38)-38),48)+1)
H38H38=INDEX($B$2:$AW$33,ROUNDUP((ROW($A$38)-37)/48,0),MOD((ROW($A$38)-38),48)+1)
 
Upvote 0
HI thanks im working with it but struggling to get it to work on my sheet seems to start on a random date and not the first date on the list
 
Upvote 0
Well, that wasn't in your requirement.
I'm not at computer now. I'll have to do it later or someone else can certainly chime in.
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,100
Members
452,301
Latest member
QualityAssurance

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