Search code examples
excel

How can I get lists of items ignoring blank cells from a column using only excel formula (Without VBA)


Please see the image which will show my data and expected output.

Data and expected output


Solution

  • Use this formula in C2 cell: It is a array formula, so press Ctrl + Shift + Enter after entering formula.

    =IFERROR(INDEX($A$2:$A$15,SMALL(IF($A$2:$A$15<>"",ROW($A$2:$A$15)),ROWS($A$2:$A2))-1),"")
    

    enter image description here