[英]Setting a cell to a value of another cell IF another cell was value X
Is there a formula in excel to allow you to obtain the value of another cell WHEN a second cell was value X? Excel中是否存在公式,当第二个单元格的值为X时,您可以获取另一个单元格的值?
For example, something like: 例如,类似:
=GETWHEN(A1,3,B2)
Which would return B2's cell value when A1 is value 3. 当A1为值3时,它将返回B2的像元值。
So if let's say you had a cell B2=4*B1. 因此,假设您有一个单元格B2 = 4 * B1。 And B1 you set to 3, so B2 would show 12. But I want to make a row of entries to plot what B2 will be when A1 is 1, 2, 3, 4, 5 etc... B1设置为3,所以B2会显示12。但是我想做一行记录A1为1、2、3、4、5等时B2的状态。
What could I put under A1 Values? 我可以在A1值下输入什么?
EDIT: I'm not looking for a if like in the conditional sense. 编辑:我不是在条件意义上寻找一个if。 I'm looking for the value WHEN (edited now) 我正在寻找值WHEN(立即编辑)
You're thinking about data tables . 您正在考虑数据表 。
Provided you have your values in E2:E6
, and your formula in B2
: 假设您在E2:E6
拥有值,并且在B2
具有公式:
=B2
in cell F1. 在单元格F1中输入=B2
。 E1:F6
. 选择E1:F6
。 Data - Data table
and put B1
into the Row input cell
box (B1 being the cell on which B2 depends). 转至Data - Data table
然后将B1
放入Row input cell
框中(B1是B2所依赖的单元格)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.