Excel电子表格根据另一个单元格的值填充单元格
我有一个 Excel 电子表格,其中包含一堆列。我的第一列包含 mpg 值(每加仑大约 300 英里条目)。我想做的是填充另一列 基于第一个单元格的值是否大于或小于 23.5
所以基本上它看起来像这样:
**A** **B**
10
15
29
14
32
24
我希望根据相应的单元格(例如 A1 > 24.5,所以用 yes 填充 B)来填充 B 列大于 24.5 为“是”或“否”。
是否有一个简单的函数可以用来对所有值执行此操作? 请提供详细的说明,因为我几乎不使用 Excel,而且我对过去感到迷失。
I have a excel spreadsheet that contains a bunch of columns. My first column contains values of mpg(about 300 entries of miles per gallon). What I want to do is populate another column
based on whether the value of the first cell is greater than or less than 23.5
So basically it looks like this:
**A** **B**
10
15
29
14
32
24
I want column B to be populated depending on if the corresponding cell (eg. A1 > 24.5 so populate B with yes) is greater than 24.5 with yes or no.
Is there a simple function I can use to do it on all the values?
Please do provide detailed instructions since I hardly use excel and I'm lost on this past.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 B2 中输入
=IF(A2 > 23.5,"yes","no")
。然后双击单元格的右下角(小框)以填充其余单元格。Type
=IF(A2 > 23.5,"yes","no")
into B2. Then double-click the bottom-right corner of the cell (the little box) to fill the rest of the cells.