Absolute moving

AquaSky

New Member
Joined
May 25, 2023
Messages
5
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi hope you can help.

I am working on a spreadsheet that is to help children track paper waste within a school. I have a macro to save the record and that seems to be working fine.

The issue I am having is the the absolute bell I am using as a reference, I want the previous record to be looked up so it can work out the percentage increase or decrease or paper waste.

At the moment I have an absolute cell to copy the last entry from a table on another sheet, E.g. =records!$B$3. However when I run the macro that copies the newest record into the table and adds a new row the reference changes to $B$4.

Am I doing something wrong? How can I solve the reference issue.

Thanks in advance
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
What do you mean by code? For the macro?

The macro was a recorded macro where a row is inserted to the table and the information of copied from the calculations sheet to the record sheet.
 
Upvote 0
Managed to solve it by using a helper cell and indirect function instead of absolute. Hope that helps anyone else who struggles with this issue.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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