By: Trystan

Hi – I tried this and at first all I got in the cell with the formula was the #NAME error. I double-clicked the cell to mess around with the formula, changed nothing, hit enter, and then it worked for the first item. When I propagated the formula, though, every other cell returned an error: #NAME? or #NUM!. It would be AMAZINGLY AWESOME to get this formula to work because there are many situations where I would love to have a formula that automatically updates and removes blank lines from a series of cells but I have no idea how to fix it. Here is the formula I put into my worksheet:

=INDEX($C$8:$C$55, SMALL(IF(ISBLANK($C$8:$C$55), “”, ROW($C$8:$C$55)-MIN(ROW($C$8:$C$55))+1), ROW(A1)))

My data are in column C from C8 to C55. They are:

C8 = Housing
C9-C11 = blank
C12 = Vehicles
C13-15 = blank
C16 = Gas
C17 = blank
C18 = Utilities
C19-23 = blank
C24 = Food
C25-27 = blank
C28 = Party
C29 = blank
C30 = Saving
C31-33 = blank
C35 = Carl
C35-38 = blank
and so on. I can add more if you need it.

To be fair, although I have minor experience with coding (C++ and Python), INDEX functions in Excel are like hieroglyphics to me; I just don’t get it. What am I doing wrong? Why will it work for the first cell but when I propagate (drag the fill button as it says above) does it stop working?