在Excel单元格中声明变量 [英] Declaring variables in Excel Cells

查看:167
本文介绍了在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆