Forum Discussion

Saurabh Khanna's avatar
Saurabh Khanna
Copper Contributor
Mar 18, 2018
Solved

Count number of blank cells till last non empty cell in a column.

Hello -   I want to count number of blank cells till last non empty cell in a column but could not figure out how to do this, can you please help?   When I use Countblank formula, it takes an...
  • Jamil's avatar
    Jamil
    Mar 20, 2018
    It does not work because of circular reference problem.

    My formula range starts from A1 while you also want to use inside the same range.

    To make this work you need to redefjne the starting row of your column A in the formula for example if your start of data starts from A4 then the modified formula should be
    =COUNTBLANK(A$4:INDEX(A:A,SUMPRODUCT(MAX((A:A<>"")*ROW(A:A)))))
    This should work.

Resources