ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting Marked Cells (https://www.excelbanter.com/excel-worksheet-functions/121927-counting-marked-cells.html)

Fred Atkinson

Counting Marked Cells
 
Is there a function available that would count the number of
cells that are not blank?

Example: Attendance sheet:

A3 A4 A5 A6 A7
M T W Th F
X X X X =<somefunction(A3:A7)
<somefunction would yield '4' in this case.

Regards,



Fred


Niek Otten

Counting Marked Cells
 
Hi Fred,

=COUNTA(A3:A7)

But, in your example, why not 5 as result?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Fred Atkinson" wrote in message ...
| Is there a function available that would count the number of
| cells that are not blank?
|
| Example: Attendance sheet:
|
| A3 A4 A5 A6 A7
| M T W Th F
| X X X X =<somefunction(A3:A7)
| <somefunction would yield '4' in this case.
|
| Regards,
|
|
|
| Fred
|



Nils Morten

Counting Marked Cells
 
Hey Pal

I suggest using =counta(offset
=count(offset(A1;2;0;3;5))

A1 is the table-reference celle
2 is number of rows beneath table-reference cell = upper left cell in
offset range area
0 is number of columns right to table-reference cell = upper left cell
in offset range area
3 is number of rows in the offset range area
5 is number of columns in the offset range area

By making the constants 2,0,3 and 5 linked cell, the formula will count
the entries in a dynamic range - I think.....

Example: Attendance sheet:


A B C D
E
1
2
3 A3 A4 A5 A6 A7
4 M T W Th F
5 X X X X





Fred Atkinson skrev:
Is there a function available that would count the number of
cells that are not blank?

Example: Attendance sheet:

A3 A4 A5 A6 A7
M T W Th F
X X X X =<somefunction(A3:A7)
<somefunction would yield '4' in this case.

Regards,



Fred



Fred Atkinson

Counting Marked Cells
 
Because only four of the five days are marked.

Regards,



Fred

On Fri, 8 Dec 2006 12:25:02 +0100, "Niek Otten"
wrote:

Hi Fred,

=COUNTA(A3:A7)

But, in your example, why not 5 as result?



All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com