how to set up a simple variable in Excel, but cell location independent
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. |
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. |
how to set up a simple variable in Excel, but cell location independent
Great. Thank you very much.
"RagDyer" wrote in message ... 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 |
how to set up a simple variable in Excel, but cell location independent
You're welcome, and thank you for the feed-back.
-- Regards, RD ----------------------------------------------------------------------------------------------- Please keep all correspondence within the Group, so all may benefit ! ----------------------------------------------------------------------------------------------- "Alberta K." wrote in message ... Great. Thank you very much. "RagDyer" wrote in message ... 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 |
All times are GMT +1. The time now is 01:36 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com