Excel formula 两列,A和B,A列是T/F,B列是非负浮点,我想知道A=T和B=0的第一个单元格(或行)

Excel formula 两列,A和B,A列是T/F,B列是非负浮点,我想知道A=T和B=0的第一个单元格(或行),excel-formula,Excel Formula,我需要一个Excel公式来解决这个问题(我不想使用VBA): 我有两个相邻的列(称为A和B),A列是T/F,B列是非负浮点,我想知道A=T和B=0的第一个单元格 A B ----- T 10 T 11 F 0 T 13 T 0 [5] (stop here because this is the first row where A=T and B=0 A B ----- T 10 T 11 T 0 [3] (stop here bec

我需要一个Excel公式来解决这个问题(我不想使用VBA):

我有两个相邻的列(称为A和B),A列是T/F,B列是非负浮点,我想知道A=T和B=0的第一个单元格

A  B
-----
T 10    
T 11    
F 0    
T 13    
T 0   [5] (stop here because this is the first row where A=T and B=0

A  B
-----
T 10    
T 11    
T 0   [3] (stop here because this is the first row where A=T and B=0
我认为答案将涉及到数组公式,它将涉及到将T/F转换成二进制数组(0,1)和浮点数组,然后对它们求和以找到第一个1。这在VBA中会更容易,但我希望有一个基于Excel公式的appraoch


第一行,其中A=T和B=0

如果您只需要一行:

=AGGREGATE(15,7,ROW(A1:A100)/((A1:A100="T")*(B1:B100=0)),1)

您所说的停止是什么意思您是否试图将其设置为范围的底部?如果是,范围从何处开始,您将如何处理该范围?