Excel电子表格根据另一个单元格的值填充单元格

发布于 2024-12-06 01:45:10 字数 326 浏览 4 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

向日葵 2024-12-13 01:45:10

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文