[英]Change value in a cell based on value in another cell
Searched for this but could not find a way to do it. 搜索了这个,但找不到办法。
I would like to be able to transform a value in one cell to another value in a different cell like this: 我希望能够将一个单元格中的值转换为另一个单元格中的另一个值,如下所示:
When cells in Column A
contain Y
set same number cells in Column B
to Male
or when cells in Column A
contains N
set same number cells in Column B
value to Female
. 当
A
列中A
单元格包含Y
将B
列中的相同数字单元设置为Male
或者当A
列中A
单元格包含N
将B
列中的相同数字单元格设置为“ Female
。
For instance: 例如:
A2 = Y then B2 = Male
A2 = N then B2 = Female
=IF(A2="Y","Male",IF(A2="N","Female",""))
通过键入是它不会收税,通过键入否它将收取税 。
=IF(C39="Yes","0",IF(C39="no",PRODUCT(G36*0.0825)))
If you want to do something like the following example, you'd have to use nested if
s. 如果你想做类似下面的例子,你必须使用嵌套的
if
。
If percentage is greater than or equal to 93%, then corresponding value in B should be 4 and if the percentage is greater than or equal to 90% and less than 92%, then corresponding value in B to be 3.7, etc. 如果百分比大于或等于93%,则B中的对应值应为4,如果百分比大于或等于90%且小于92%,则B中的对应值为3.7等。
Here's how you'd do it: 这是你如何做到的:
=IF(A2>=93%, 4, IF(A2>=90%, 3.7,IF(A2>=87%,3.3,0)))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.