简体   繁体   English

Excel spreadsheed基于另一个单元格的值填充单元格

[英]Excel spreadsheed populate cell based on value of another cell

I have a excel spreadsheet that contains a bunch of columns. 我有一个excel电子表格,其中包含一堆列。 My first column contains values of mpg(about 300 entries of miles per gallon). 我的第一列包含mpg值(每加仑约300个英里数)。 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 我想要做的是根据第一个单元格的值是否大于或小于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. 我想要填充B列,具体取决于相应的单元格(例如,A1> 24.5,因此使用“是”填充B)是否大于24.5,是或否。

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. 请提供详细的说明,因为我几乎不使用excel而且我在这个过去迷路了。

Type =IF(A2 > 23.5,"yes","no") into B2. 在B2中键入=IF(A2 > 23.5,"yes","no") Then double-click the bottom-right corner of the cell (the little box) to fill the rest of the cells. 然后双击单元格的右下角(小方框)以填充其余单元格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM