Google Sheets Formulas – Counting Decimal Values with ArrayFormula

formulasgoogle sheetsgoogle-sheets-arrayformula

I am trying to count the total cells that have a single decimal value.

For example:

1.1 (1)
2
1.2 (2)
3.333
1.3 (3)
4
1.4 (4)
5.55555
1.5 (5)
6
1.6 (6)
1.7777777
1.7 (7)
8
1.8 (8)
9.999999999
1.9 (9)

What formula should be used to attain a total of nine?

Best Answer

You can use the following

=ArrayFormula(COUNTIF(LEN(INDEX(SPLIT(A2:A,"."),,2)),"=1"))

COUNTIF only one decimal digit in range

Functions used: