I agree with Burnikell1 that for a one off task that would be my approach. Except that I would not use * as this could provide misleading (and possibly different) data depending on what time you recalculated the sheet.
A method:
Place the tag in A1
In the first column (A2 downwards) populate the days.
In the row for your first day select all 24 cells to hold the data (B2:Y2) and build this Calculated Data formula:
=PICalcDat($A$1,$A2,$A2+1,"1 hour","maximum",1,2,"prepidata")
This will make 365 calls to PI for the data which will be slower than Burnikell1's suggestion of grabbing all 8k values in one go. Our PI 2 system returned the data for one tag in 50 seconds.
Once you have that cracked you can do max/min as well and impress your customer.
MilesUK
ProcessBook v3.0.15.3