简体   繁体   English

没有数组公式的倒数第二个非空白单元格(Excel Online)

[英]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.

相关问题 Excel公式在某一行开始的列中查找最后一个非空白单元格 - Excel formula to find last non blank cell in a column starting on a certain row Excel - 偏移到最后一个非空白单元格 - Excel - Offset to last non-blank cell Excel公式可识别列中的最新非空白单元格 - Excel formula to identify the most recent non blank cell in a column 用于在Excel中查找范围的第一个非空白单元格的标题索引的公式? - Formula to find the header index of the first non blank cell of a range in Excel? 找到最后一个空白单元格(列)和最后一个非空白行以输入 NOW() 公式 - Find the LAST blank cell (column) and last non-blank row to enter the NOW() formula 使用excel公式查找非空单元格的最后一行 - Find last row of non empty cell using excel formula 如何在一行中找到倒数第二个非空白值excel - How to find second to last non blank value in a row excel excel - 从交替列中找到行中的最后一个非空白单元格 - excel - find last non blank cell in row from alternating columns Excel 公式查找行中具有值的最后一个单元格,如果没有空白则添加到相邻单元格 - Excel formula to Find the last cell with value in a row and add to adjacent cell if there aren't blank 操纵甲将最后一个非空白单元格移到新列,重复倒数第二个 - Manipulate formate to move last non-blank cell to new column, repeat with second to last
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM