Count cells that contain any text

后端 未结 6 1700
囚心锁ツ
囚心锁ツ 2020-12-05 01:38

I want to count the cells that contain anything within a range. Any cell that contain text, or numbers or something else should do a plus one in my result-cell.

I fo

6条回答
  •  情深已故
    2020-12-05 02:20

    If you have cells with something like ="" and don't want to count them, you have to subtract number of empty cells from total number of cell by formula like

    =row(G101)-row(G4)+1-countblank(G4:G101)
    

    In case of 2-dimensional array it would be

    =(row(G101)-row(A4)+1)*(column(G101)-column(A4)+1)-countblank(A4:G101)
    

    Tested at google docs.

提交回复
热议问题