Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Counting Rows by Month

Hi,

I have a large table with ~2500 rows. One column contains date
information (date of the creation of the record).

I'd like to count how many records (rows) I have for each month. I
tried with the countif() function, but I don't know how to express a
date range in the criteria field.

Thanks in advance for your help.

Raph

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Roger Govier
 
Posts: n/a
Default Counting Rows by Month

Hi

One way
=COUNTIF(A1:A2500,"=01/11/2005")-COUNTIF(A1:A2500,"30/11/2005")
for the month of November
Or if you want to put your start and end dates in separate cells so you can
amend them, then with start date in D1 and end date in E1

=COUNTIF(A1:A2500,"="&D1)-COUNTIF(A1:A2500,""&E1)

Format the cell with the formula as General.

Regards

Roger Govier


wrote:
Hi,

I have a large table with ~2500 rows. One column contains date
information (date of the creation of the record).

I'd like to count how many records (rows) I have for each month. I
tried with the countif() function, but I don't know how to express a
date range in the criteria field.

Thanks in advance for your help.

Raph

  #4   Report Post  
Junior Member
 
Posts: 24
Default

Quote:
Originally Posted by
Hi,

I have a large table with ~2500 rows. One column contains date
information (date of the creation of the record).

I'd like to count how many records (rows) I have for each month. I
tried with the countif() function, but I don't know how to express a
date range in the criteria field.

Thanks in advance for your help.

Raph
Hi Raph

Try adding a helper column into which you paste the dates, then format the dates as mmm, and then do countif
  #5   Report Post  
Posted to microsoft.public.excel.newusers
R.VENKATARAMAN
 
Posts: n/a
Default Counting Rows by Month

there may be easier ways
what I would do
your first date is A1
in B1 type
=month(a1)
copy down all the 2500rows in column B
if you want to count for the month of November which is 11
empty cell type

=COUNTIF(B1:B2000,11)

===============================
"Paul S" wrote in message
...

Wrote:
Hi,

I have a large table with ~2500 rows. One column contains date
information (date of the creation of the record).

I'd like to count how many records (rows) I have for each month. I
tried with the countif() function, but I don't know how to express a
date range in the criteria field.

Thanks in advance for your help.

Raph


Hi Raph

Try adding a helper column into which you paste the dates, then format
the dates as mmm, and then do countif


--
Paul S





  #6   Report Post  
Posted to microsoft.public.excel.newusers
 
Posts: n/a
Default Counting Rows by Month

Excellent! Thanks everyone for your help!

Raph

  #7   Report Post  
Posted to microsoft.public.excel.newusers
 
Posts: n/a
Default Counting Rows by Month

Excellent, thanks everyone!

Raph

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting rows with same values for multiple values Jon Viehe New Users to Excel 4 September 1st 05 03:49 PM
Counting Match Pairs In Rows bmb2200 Excel Worksheet Functions 4 August 25th 05 03:35 AM
formula to use when number of rows changes dynamically confused Excel Worksheet Functions 3 August 17th 05 03:55 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Counting rows with 3 columns Tuc Excel Worksheet Functions 4 April 26th 05 06:46 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"