简体   繁体   English

除了office365 excel,FILTER 功能的替代方案是什么?

[英]What is an alternative of FILTER function for other than office365 excel?

I have an excel sheet like我有一个像

SKU单品 ITEM_ID ITEM_ID LINE线
111 111 1 1 CCC CCC
111 111 2 2 NNN神经网络

I need to filter rows based on value of LINE column.我需要根据 LINE 列的值过滤行。 In office365 it can easily be done by FILTER function.在 office365 中,它可以通过 FILTER 功能轻松完成。 I have to use excel 2007. What can be a good alternative to create function to filter here?我必须使用 excel 2007。在这里创建过滤功能的好方法是什么?

=IFERROR(INDEX($A$1:$C$3,SMALL(IF(--($C$1:$C$3="CCC"),ROW($C$1:$C$3)),ROWS($1:1)),COLUMNS($A:A)),"") array formula to be entered with ctrl+shift+enter in versions prior to office 365. Copy down the formula and to the right to your needs. =IFERROR(INDEX($A$1:$C$3,SMALL(IF(--($C$1:$C$3="CCC"),ROW($C$1:$C$3)),ROWS($1:1)),COLUMNS($A:A)),"")在 office 365 之前的版本中使用ctrl+shift+enter数组公式。将公式复制到您需要的右侧。 The ROWS-part of the function will behave as a counter for 1st, 2nd, etc match for the condition.函数的 ROWS 部分将作为条件的第一个、第二个等匹配的计数器。

You can adjust the ranges, but make sure to adjust all three: =IFERROR(INDEX($A$1:$C$[number of end of range],SMALL(IF(--($C$1:$C$[same number as before]="CCC"),ROW($C$1:$C$[same number as before])),ROWS($1:1)),COLUMNS($A:A)),"")您可以调整范围,但一定要调整所有三个: =IFERROR(INDEX($A$1:$C$[number of end of range],SMALL(IF(--($C$1:$C$[same number as before]="CCC"),ROW($C$1:$C$[same number as before])),ROWS($1:1)),COLUMNS($A:A)),"")

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

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