简体   繁体   中英

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

I have an excel sheet like

SKU ITEM_ID LINE
111 1 CCC
111 2 NNN

I need to filter rows based on value of LINE column. In office365 it can easily be done by FILTER function. I have to use excel 2007. What can be a good alternative to create function to filter here?

=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. The ROWS-part of the function will behave as a counter for 1st, 2nd, etc match for the condition.

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)),"")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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