Mmmm, OK back to the root problem:
In sheet1 I have Meter values per day for energy Usage (Peak/OffPeak/Gas/Solar Production/SolarPeakReturned/SolarOffPeakReturned)
In sheet2 I want to make a reference to the values of previous day, previous week, previous month and previous year.
In my Home Assistant automations I generate this data automatically, so I only need this data when I want to push these values after some kind of mishap. This happens frequently now because I’m working on this part of the Home Assistant setup.
To make the “Previous…” overview in sheet2, I would like to use the OFFSET function of Calc, but offset only seems to work offsetting on the active sheet (Sheet2), and I would like to offset on sheet 1 where the day based core data is. So I thought I could make the reference to sheet 1 in the previous_day row on sheet 2 and calculate the references for previous_week, previous_month and year for all the energy types by subtracting a nr of rows. So if the week shifts -7, if the month shifts -28/30/31 if the year shifts -365.
Pfff, this is the background of my xy problem. I did not want to make it too complicated…
PPee