简体   繁体   English

Excel公式返回不等于“ x”的值

[英]Excel formula to return the value that is not equal to “x”

i have 2 columns and 10 rows. 我有2列和10行。 the first column has data in it (1a,2a,3a ... 1b,2b,3b...) the second column has a true or false value. 第一列中包含数据(1a,2a,3a ... 1b,2b,3b ...),第二列具有true或false值。 i only have 1 true value and all the rest will be false when changing data. 我只有1个真值,其余的在更改数据时都是假的。

i want whenever a cell is true to show the value of the true cell in a different cell. 我想每当一个单元格为真时,在另一个单元格中显示真实单元格的值。

the "TRUE" value will be variable in the column. “ TRUE”值将在该列中变化。

If I understand you correctly 如果我理解正确

=IF(B1=TRUE,A1,"")

Add this formula to cell C1 and drag down. 将此公式添加到单元格C1中并向下拖动。

在此处输入图片说明

如果要“左查找”,即要在不交换列的情况下进行此工作,可以使用INDEX/MATCH这样的方法

=INDEX(A:A,MATCH(TRUE,B:B,0))

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

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