在 Excel 单元格中声明变量 [英] Declaring variables in Excel Cells
本文介绍了在 Excel 单元格中声明变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 Excel 单元格中声明变量并将它们用作其他单元格中公式的参数?
Is it possible to declare variables in Excel cells and use them as parameters for formulas in other cells?
例如,我会在其中一个单元格中声明 var1=10
.在另一个单元格中,我将使用 var1
进行计算,例如:=var1*20
.
For example I would declare var1=10
in one of the cells.
In another cell I would use var1
for calculation like: =var1*20
.
推荐答案
您可以命名单元格.这是通过单击名称框(例如,编辑栏旁边的那个写着A1"的东西)并输入一个名称来完成的,例如myvar".现在您可以使用该名称代替单元格引用:
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
这篇关于在 Excel 单元格中声明变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文