Solved

How do I make an Excel formula that never changes, regardless of what happens to any referenced cells?

Posted on 2015-01-05
4
144 Views
Last Modified: 2015-01-05
Folks -

I am well aware of the difference between absolute and relative references.  I've stumbled on something I can't figure out how to make Excel do though.

Let us say I have a value of 10 in A2.

Let us say in A1, I type the formula: =$A$2

A1 and A2 should therefore reflect the value 10.

The absolute reference for the column and row in the formula in A1 means that if I cut and paste A1 around, it's formula will not change.  It will remain =$A$2.

What I want to figure out is how I get Excel to not change the formula in A1 if I move *A2* around.  In other words, if I cut A2 to somewhere else, I still want A1 to reflect =$A$2, rather than the location I moved A2 to, which is precisely how Excel behaves.

What I'm after is keeping a formula absolute, in all cases, regardless of what I do with its targeted cell(s).

Is this possible?

Thanks in advance.
0
Comment
Question by:amendala
4 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
Comment Utility
Try:

=INDIRECT("A2")
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
the content of A1 will always reflect the data in A2, if you change contents of A2, the change will be reflected in A1.
What your $A$2 means that when you copy and move A1 to any other location it will still reference the contents of A2 and will reflect that no matter where you paste it.
The only time A1 function as you have it is changed is when you insert a column or a row displacing the two items in the formula.or you cut and paste the contents of A2 somewhere else, the A1 formula will be adjusted to reflect the relocation of the cell.

Not sure whether you can lock the function to ignore mass worksheet change.
You could use/write a macro that I do not believe will be affected by excel "intuitive" adjustments as those are managed by VBA.
0
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
The Indirect approach is what comes into mind - that should work. But Excel can no longer determine if the value has to change if there are changes to the sheet, so there is a performance if used extensively.
0
 

Author Closing Comment

by:amendala
Comment Utility
Perfect.  This is precisely what I was looking for and works exactly as intended for me.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now