ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Summing cells containing dates (https://www.excelbanter.com/excel-worksheet-functions/186925-summing-cells-containing-dates.html)

Laura

Summing cells containing dates
 
I need to add up the total number of cells in a column that contain entries.
THe entries are dates i..e,

Column A
March 3, 2008
Feb 2, 2008
Aprril 3, 2008

June 14, 2008
(sum should = 4 for the total number of cells with entries in the column)

AKphidelt

Summing cells containing dates
 
use the formula Count

=Count(A1:A5)

"Laura" wrote:

I need to add up the total number of cells in a column that contain entries.
THe entries are dates i..e,

Column A
March 3, 2008
Feb 2, 2008
Aprril 3, 2008

June 14, 2008
(sum should = 4 for the total number of cells with entries in the column)


T. Valko

Summing cells containing dates
 
Try this:

=COUNT(A1:A100)

--
Biff
Microsoft Excel MVP


"Laura" wrote in message
...
I need to add up the total number of cells in a column that contain
entries.
THe entries are dates i..e,

Column A
March 3, 2008
Feb 2, 2008
Aprril 3, 2008

June 14, 2008
(sum should = 4 for the total number of cells with entries in the column)




Otto Moehrbach[_2_]

Summing cells containing dates
 
One way:
=CountA(A:A)
for all of column A. Otto
"Laura" wrote in message
...
I need to add up the total number of cells in a column that contain
entries.
THe entries are dates i..e,

Column A
March 3, 2008
Feb 2, 2008
Aprril 3, 2008

June 14, 2008
(sum should = 4 for the total number of cells with entries in the column)




Mike H

Summing cells containing dates
 
Hi,

If your column contains numbers as well as dates then a function may help

Alt+F11 to open VB editot. Right click 'This Workbook' and insert module and
paste this in

Function datecount(rng As Range)
For Each c In rng
If IsDate(c) Then datecount = datecount + 1
Next
End Function

From the worksheet call with
=datecount(A:A)

Mike

"Laura" wrote:

I need to add up the total number of cells in a column that contain entries.
THe entries are dates i..e,

Column A
March 3, 2008
Feb 2, 2008
Aprril 3, 2008

June 14, 2008
(sum should = 4 for the total number of cells with entries in the column)



All times are GMT +1. The time now is 12:43 AM.

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