[英]Second to last non blank cell without Array Formula (Excel Online)
I have an Excel Online sheet that has info coming in from a Microsoft Form.我有一个 Excel Online 工作表,其中包含来自 Microsoft Form 的信息。 I need to find the highest non blank cell and the second non blank based on one criteria.
我需要根据一个标准找到最高的非空白单元格和第二个非空白单元格。 The last non blank was easy with LOOKUP
使用 LOOKUP 最后一个非空白很容易
=LOOKUP(2,1/(K2:K1000="6"),G2:G1000)
However it is proving difficult to get the penultimate non blank cell without using Array formulas.然而,事实证明,如果不使用数组公式,很难获得倒数第二个非空白单元格。 Excel Online doesn't update Arrays automatically, you have to CSE each cell which is not too timely with my number of cells.
Excel Online 不会自动更新数组,您必须对每个单元格进行 CSE,这与我的单元格数量不太及时。 Is there a non array way of getting the second to last non blank cell contents?
是否有一种非数组方式来获取倒数第二个非空白单元格内容?
I have spent a long time searching and only found ARRAY solutions or ways of getting the penultimate cell when its a number.我花了很长时间搜索,只找到了 ARRAY 解决方案或获取倒数第二个单元格的方法。 Unfortunately my entries are text.
不幸的是,我的条目是文本。 Cheers.
干杯。
As long as you can start at row 1 because row 1 are headers and so K1 cannot be 6 it could be:只要您可以从第 1 行开始,因为第 1 行是标题,因此 K1 不能是 6,它可能是:
=INDEX(G1:G1000,LARGE(INDEX((K1:K1000="6")*ROW(K1:K1000),0),2))
LARGE(...,2)
points to second last cell fulfilling criterion in column K
. LARGE(...,2)
指向K
列中满足条件的倒数第二个单元格。
Else it must be more complex:否则它必须更复杂:
=INDEX(G2:G1000,LARGE(INDEX((K2:K1000="6")*(ROW(K2:K1000)-ROW(K1)),0),2))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.