how to set up a simple variable in Excel, but cell location independent

A

Alberta K.

Can you please show me how to set up a simple variable in Excel, but this
variable must be cell location independent. Because this worksheet will be
sorted and cell location re-arranged and moved. That mean for example,

In one worksheet, I set variable numb = 5
other cell at different location value display will have function such as
numb*2 = 5*2 = 10

Then, other time, I set this same variable numb = 12
then, the call value will display
numb*2 = 12*2 = 24

Thank you.
 
R

RagDyer

You might try a named formula.

From the Menu Bar,
<Insert> <Name> <Define>
In the "Names In Workbook: box, type
numb

*Change*whatever's in the "Refers To" box to,
=5
Then <OK>

Now, in any cell enter,
=numb
And you'll get a return of 5.

So,
=10*numb
Will return 50.

=numb/2
Will return 2.5

To change the value, just repeat the above procedure and change the value in
the "Refers To" box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top