View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
RagDyeR RagDyeR is offline
external usenet poster
 
Posts: 3,572
Default how to set up a simple variable in Excel, but cell location independent

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.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Alberta K." wrote in message
...
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.