Is it possible to declare variables in Excel cells and use it as parameter for formula in other cells? For example I would declare var1=20 in one of the cells. In other cells I would use var1 for calculation like : =var1*20.
Thanks...
Is it possible to declare variables in Excel cells and use it as parameter for formula in other cells? For example I would declare var1=20 in one of the cells. In other cells I would use var1 for calculation like : =var1*20.
Thanks...
You can't declare a variable in a cell, but you can use (hidden) cells as variables. E.g., you could hide Column C, set C1 to
=20
and use it as
=c1*20
Alternatively you can write VBA Macros which set and read a global variable.
Edit: AKX renders my Answer partially incorrect. I had no Idea you could name cells in Excel.
You can name cells. This is done by clicking the Name Box (that thing next to the formula bar which says "A1" for example) and typing a name, such as, "myvar". Now you can use that name instead of the cell reference:
= myvar*25