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
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 40532345
Try:

=INDIRECT("A2")
0
 
LVL 78

Expert Comment

by:arnold
ID: 40532375
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 70

Expert Comment

by:Qlemo
ID: 40532423
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
ID: 40532818
Perfect.  This is precisely what I was looking for and works exactly as intended for me.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

717 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