welshgasman
Well-known Member
- Joined
- May 25, 2013
- Messages
- 1,395
- Office Version
- 2019
- 2007
- Platform
- Windows
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2:I2 | G2 | =AVERAGE(qryPressure!B:B) |
F2:F56 | F2 | =A2 |
Hi all,
I have to keep track of my blood pressure now.
I do so with an Access database which I created to keep track of my carbs as I am type 2 diabetic.
The sheet gets it's data from a query in the database.
From this sheet, I created a column graph.
All good so far.
However the labels get cluttered if I use the full date format of the date on the chart, so I only use dd/mm format.
In another column F, I use ==A2 as the formula starts at row 2, and copy it down as far as the table exists at that time. I also copy it past that last row.
At the time of copy the referencing is correct, so if the data goes to row 46, F46 has = A46 and F47 has =A47 and so on.
However when I refresh the data, the references fo awry. It appears to be by the number of new rows added to the table?
So now F47 has F51 if I have just added 4 rows on the refresh.?
Is there a way I can keep the data synced on each refresh? I have added the refresh to the workbook.Open event, so as not to have to do it manually each time, but it was doing it, when I am doing it manually.
I can correct it by finding the last row with the correct reference, and then double clicking to copy down to the new end of data row.
I suppose I could copy F2 down as far as the rows goes, but is there an automatic way please?
TIA