Manipulate hourly data into daily data

hip2b2

Board Regular
Joined
May 5, 2003
Messages
135
Office Version
  1. 2019
Platform
  1. Windows
I have months and months of hourly energy data that I want to review as daily data.
HQ Hourly Dec 1 2022 - Jan 16 2023.csv
ABCD
1Date and timeLower kWhHigher kWhAverage temperature (°C)
201/12/2022 0:006.0201
301/12/2022 1:008.701
401/12/2022 2:006.900
501/12/2022 3:000.5600
601/12/2022 4:004.5300
701/12/2022 5:0012.9600
801/12/2022 6:003.600
901/12/2022 7:000.6900
1001/12/2022 8:000.590-1
1101/12/2022 9:000.9700
1201/12/2022 10:000.5701
1301/12/2022 11:000.6301
1401/12/2022 12:000.5700
1501/12/2022 13:000.5801
1601/12/2022 14:001.0301
1701/12/2022 15:000.6401
1801/12/2022 16:000.7301
1901/12/2022 17:001.3301
2001/12/2022 18:000.7300
2101/12/2022 19:000.700
2201/12/2022 20:002.930-1
2301/12/2022 21:006.030-1
2401/12/2022 22:0010.630-1
2501/12/2022 23:0011.820-2
HQ Hourly Dec 1 2022 - Jan 16 2

I would like to combine each single day's hourly data to a single daily value, with Column B values summed, Column C values summed, and Column D values averaged.

Any suggestions as to best approach?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
MrExcelPlayground15.xlsx
ABCDEFGHI
1Date and timeLower kWhHigher kWhAverage temperature (°C)DateLower kWhHigher kWhAverage temperature (°C)
212/01/2022 0:006.020112/1/202284.4400.125
312/01/2022 1:008.70112/2/202230.5200.25
412/01/2022 2:006.90012/3/202228.6700.333333
512/01/2022 3:000.560012/4/202222.600.416667
612/01/2022 4:004.530012/5/202231.4300.166667
712/01/2022 5:0012.9600
812/01/2022 6:003.600
912/01/2022 7:000.6900
1012/01/2022 8:000.590-1
1112/01/2022 9:000.9700
1212/01/2022 10:000.5701
1312/01/2022 11:000.6301
1412/01/2022 12:000.5700
1512/01/2022 13:000.5801
1612/01/2022 14:001.0301
1712/01/2022 15:000.6401
1812/01/2022 16:000.7301
1912/01/2022 17:001.3301
2012/01/2022 18:000.7300
2112/01/2022 19:000.700
2212/01/2022 20:002.930-1
2312/01/2022 21:006.030-1
2412/01/2022 22:0010.630-1
2512/01/2022 23:0011.820-2
2612/02/2022 0:003.600
2712/02/2022 1:000.6900
2812/02/2022 2:000.590-1
2912/02/2022 3:000.9700
3012/02/2022 4:000.5701
3112/02/2022 5:000.6301
3212/02/2022 6:000.5700
3312/02/2022 7:000.5801
3412/02/2022 8:001.0301
3512/02/2022 9:000.6401
3612/02/2022 10:000.7301
3712/02/2022 11:001.3301
3812/02/2022 12:000.7300
3912/02/2022 13:000.700
4012/02/2022 14:002.930-1
4112/02/2022 15:006.030-1
4212/02/2022 16:003.600
4312/02/2022 17:000.6900
4412/02/2022 18:000.590-1
4512/02/2022 19:000.9700
Sheet12
Cell Formulas
RangeFormula
G2:H6G2=SUMPRODUCT(--(INT($A$2:$A$121)=$F2),B$2:B$121)
I2:I6I2=SUMPRODUCT(--(INT($A$2:$A$121)=$F2),D$2:D$121)/SUMPRODUCT(--(INT($A$2:$A$121)=$F2))
F3:F6F3=F2+1
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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