Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Declaring variables in Excel Cells

Is it possible to declare variables in Excel cells and use them as parameters for formulas in other cells?

For example I would declare var1=10 in one of the cells. In another cell I would use var1 for calculation like: =var1*20.

like image 600
Manoj Avatar asked Apr 09 '09 06:04

Manoj


People also ask

Can you have variables in Excel?

You use Excel variables to retrieve values (logins, passwords, product IDs and so on) from Excel files and insert them into scenarios. Excel variables are similar to list variables, but are linked to a column in an Excel file, not to a static list.

What is a variable cell in Excel?

Variable cells (Changing cells or Adjustable cells in earlier versions) are cells that contain variable data that can be changed to achieve the objective. Excel Solver allows specifying up to 200 variable cells.


1 Answers

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 
like image 164
AKX Avatar answered Sep 25 '22 17:09

AKX