Search code examples
if-statementgoogle-sheetsgoogle-sheets-formulaarray-formulascounting

I want to exclude blanks in serial numbering


In this example I am trying to make a serial numbering without counting blanks.

I have tried to use ISBLANK, SEQUENCE and MATCH.

enter image description here

Is this possible?


Solution

  • try:

    =ARRAYFORMULA(IF(E2:E<>""; COUNTIFS(E2:E<>""; E2:E<>""; ROW(E2:E); "<="&ROW(E2:E)); ))
    

    enter image description here