Change value in a cell based on value in another cell

自作多情 提交于 2019-12-12 10:38:34

问题


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.

For instance:

A2 = Y then B2 = Male
A2 = N then B2 = Female

回答1:


=IF(A2="Y","Male",IF(A2="N","Female",""))



回答2:


by typing yes it wont charge taxes, by typing no it will charge taxes.

=IF(C39="Yes","0",IF(C39="no",PRODUCT(G36*0.0825)))



回答3:


If you want to do something like the following example, you'd have to use nested ifs.

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.

Here's how you'd do it:

=IF(A2>=93%, 4, IF(A2>=90%, 3.7,IF(A2>=87%,3.3,0)))


来源:https://stackoverflow.com/questions/20485036/change-value-in-a-cell-based-on-value-in-another-cell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!