Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Count ALL Cells in Range in Excel

Tags:

range

excel

count

What's the simplest or preferred Excel formula to count ALL cells in a range, whether blank or not?

Let's say I have a column of cells, some blank and some non-blank. I want a formula displaying "x/y", where x = # of non-blank cells and y= total # of cells.

I found that this will work, but I was wondering if I really need to sum two functions to get "y"?

=COUNTA($L$9:$L13) & "/" & COUNTA($L$9:$L13) + COUNTBLANK($L$9:$L13)

displays 4/5 (for my data where 4 of the 5 cells are non-blank)

like image 828
Winston Smith Avatar asked Aug 18 '15 19:08

Winston Smith


People also ask

How do I count everything in Excel?

Use AutoSum by selecting a range of cells that contains at least one numeric value. Then on the Formulas tab, click AutoSum > Count Numbers.


1 Answers

Instead of COUNTA($L$9:$L13) + COUNTBLANK($L$9:$L13), you can use:

=ROWS($L$9:$L13)
like image 165
rwilson Avatar answered Sep 22 '22 00:09

rwilson