Search code examples
excelfilteroffice365compatibility

Is there any other method to filter away the empty space in excel?


enter image description here Hi all,

I'm thinking of a way to filter away the empty space in column C so that I can get the desired output exactly the same as the one in column H. I only can figure out using filter function but it seems like only works if the user subscribe for office 365, otherwise it will have compatibility issue. Is there any other way to do it instead of using filter function?


Solution

  • You can use Aggregate() function to filter data based on condition. Try-

    =IFERROR(INDEX($C$4:$C$31,AGGREGATE(15,6,(ROW($C$4:$C$31)-ROW($C$3))/($C$4:$C$31<>""),ROW(1:1))),"")
    

    enter image description here

    If your excel version is older than Excel2013 then use CSE entry below formula.

    =INDEX($C$4:$C$31,SMALL(IF($C$4:$C$31<>"",ROW($C$4:$C$31)-ROW($C$3),""),ROW(1:1)))
    

    Press CTRL+SHIFT+ENTER to evaluate the formula as it is an array formula.