Formulae jumping references?

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
1,395
Office Version
  1. 2019
  2. 2007
Platform
  1. Windows
Blood Pressures.xlsm
ABCDEFGHI
1DateTimeSystolicDystolicHeartWith TimeAVG SysAVG DisAVG Pulse
226/091648626/09/2024 14:151417871
326/091206326/09/2024 23:15
427/091558227/09/2024 09:25
527/09134767327/09/2024 14:15
627/09143895827/09/2024 22:58
728/09156925928/09/2024 08:15
829/09147788029/09/2024 10:02
929/09127826129/09/2024 13:05
1029/09155899129/09/2024 19:38
1129/09147757629/09/2024 21:53
1230/09145806430/09/2024 08:36
1330/09153905130/09/2024 12:29
1430/09141796430/09/2024 22:20
1501/10156856701/10/2024 08:48
1601/10138847301/10/2024 13:45
1701/10146717501/10/2024 22:22
1802/10140727102/10/2024 07:44
1902/10151735802/10/2024 15:14
2003/10142697303/10/2024 00:20
2103/10150836703/10/2024 09:42
2203/10144816203/10/2024 15:04
2304/10129708704/10/2024 08:07
2404/10133717604/10/2024 12:45
2504/10142765804/10/2024 22:43
2605/10135766905/10/2024 08:39
2705/10138708105/10/2024 22:58
2806/10148777806/10/2024 09:59
2906/10113638706/10/2024 20:58
3007/10140839307/10/2024 08:54
3107/10129717807/10/2024 12:28
3207/10141887607/10/2024 23:25
3308/10152887508/10/2024 09:37
3408/10128686708/10/2024 15:22
3508/10145727308/10/2024 21:48
3609/10149806609/10/2024 08:26
3709/10158946009/10/2024 15:46
3809/10122667509/10/2024 22:23
3910/10130757310/10/2024 08:45
4010/10140885910/10/2024 12:27
4110/10129726810/10/2024 23:06
4211/10141857511/10/2024 07:06
4311/10131738711/10/2024 13:09
4411/10131746711/10/2024 22:46
4512/10156876012/10/2024 09:11
4612/10132737212/10/2024 13:00
4700/01/1900 00:00
4800/01/1900 00:00
4900/01/1900 00:00
5000/01/1900 00:00
5100/01/1900 00:00
5200/01/1900 00:00
5300/01/1900 00:00
5400/01/1900 00:00
5500/01/1900 00:00
5600/01/1900 00:00
57
58
59
60
61
62
63
64
65
66
qryPressure
Cell Formulas
RangeFormula
G2:I2G2=AVERAGE(qryPressure!B:B)
F2:F56F2=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
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello! How about this F2=$A2
In this case, when added, the formula will work correctly.
 
Upvote 0
Hi,
Thanks for the reply.

No, the column character is remaining the same, just the row number is incremented incorrectly.
Right now, with what I posted F46 = A46 and F47 is still = A47, even though there is not entry in column A yet. Same for the rows below that row.
However when I carry out a reading tonight, they will go awry again when I Refresh All.
Row 47 will remain as 00/01/1900 as that reference will change to A48 or later, (I think depending on how many new rows come in), which will not have anything in it.
 
Upvote 0
Use this formula for column F
Excel Formula:
=IF(A2<>"";A2;"")
 
Upvote 0
Thank you.
I will try tomorrow.
I not get email notifications of any reply, despite them being set in preferences?
 
Upvote 0
Thank you.
I will try tomorrow.
I not get email notifications of any reply, despite them being set in preferences?
No, same issue.
I could not use this morning as the workbook refreshes on open.
Just added an entry now to the DB and the same problem occurred, the formula for row 49 went to 50, so showed nothing.

I will just copy from F2 to the last row as per column F.

Thanks for trying.
 
Upvote 0
Hello! Alternatively, transform your flat table into a smart table. Subsequently, it will only be enough to expand it with the help of a marker by the number of lines that you need. As a result, all formulas will be automatically copied to new cells.
 
Upvote 0

Forum statistics

Threads
1,223,840
Messages
6,174,953
Members
452,593
Latest member
Jason5710

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