Stopping automatic change of cell reference

alion

New Member
Joined
Aug 4, 2011
Messages
19
I have list of variables in sheet1 and their values are collected from sheet2. for example, for variable 1 the value is =sheet2!A2. So problem is that sheet2 gets updated with latest data using VBA so that existing data moves down one cell and new data is added to A2 then cell reference in sheet1 becomes =sheet2!A3. How can I stop this? I want the reference to stay at A2 and do not change to A3 automatically. I tried putting $ sign but it does not work. Anyone?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try something like...
=INDEX(Sheet2!A:A, 2)

The 2 is the fixed row that you want to reference. In this example; Sheet2!A2
 
Upvote 0
Try something like...
=INDEX(Sheet2!A:A, 2)

The 2 is the fixed row that you want to reference. In this example; Sheet2!A2

thanks for the reply man. I tried this, but it is not working. When I add one row above the referenced cell, the formula changes to Index(Sheet2!A3). I want it to stay at A2.
 
Upvote 0
I suggest you recheck the formula that Alphafrog suggested.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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