Check out example codes for "number of filled cells google sheets". It will help you in understanding the concepts better.

Code Example 1

=SUMPRODUCT(LEN(TRIM(A2:A13))>0)

Learn ReactJs, React Native from akashmittal.com