Extracting all rows based on a value of cell without VBA

前端 未结 4 1855

I\'m really struggling to find an answer to this as online I\'ve really only found VBA solutions to this problem which isn\'t what I wish to learn how to do.

4条回答
  •  鱼传尺愫
    2020-12-30 14:11

    Try this standard formula:

    = IFERROR( INDEX( A$2:A$11, AGGREGATE( 15, 6,
    ROW($A:$A) / ( $A$2:$A$11 = "O" ), ROWS( $A$2:$A2 ) ) ), "" )
    

    or if you want to limit the size of size of column A

    = IFERROR( INDEX( A$2:A$11, AGGREGATE( 15, 6,
    ROW($A$1:$A$11) / ( $A$2:$A$11 = "O" ), ROWS( $A$2:$A2 ) ) ), "" )
    

    Enter the formula in G2 then copy it to G2:J10

提交回复
热议问题