google spreadsheet count f cell is not empty code example Example: number of filled cells google sheets =SUMPRODUCT(LEN(TRIM(A2:A13))>0)