根据另一个单元格中的值更改一个单元格中的值 [英] Change value in a cell based on value in another cell

查看:85
本文介绍了根据另一个单元格中的值更改一个单元格中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索了此内容,但找不到解决方法.

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:

A 列中的单元格包含 Y 时,将 B 列中相同编号的单元格设置为 Male A 列中包含 N ,在 B 列中将相同数量的单元格设置为 Female .

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.

例如:

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

推荐答案

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

这篇关于根据另一个单元格中的值更改一个单元格中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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