Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MZ MZ is offline
external usenet poster
 
Posts: 4
Default number of rows/records for the specified period

Hello!

I have a range of dates between 2008-02-25 till 2008-12-25 and I would like to
count the number of rows which has not empty data (distance field) for the
February 2008, March 2008 etc.

These data a
Date Distance (km)
2008-02-25 25 km
2008-02-26 26 km
2008-02-27 not filled in yet
2008-02-28 not filled in yet
2008-03-01 not filled in yet
etc. etc.

February 2008 - my functions should return 2
March 2008 - my function should return 0

Can you help me how to do it using Excel 2007 functions?

Thank you in advance
Martin


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default number of rows/records for the specified period

I have a range of dates between 2008-02-25 till 2008-12-25

If you want a summary for each month from Feb to Dec...

Enter this formula in D1:

=TEXT(ROWS(D$1:D2)*30,"mmm")

Enter this formula in E1:

=SUMPRODUCT(--(TEXT(A$1:A$5,"mmm")=D1),--(B$1:B$5<""))

Select both D1 and E1 and copy down to D11:E11


--
Biff
Microsoft Excel MVP


"MZ" wrote in message
...
Hello!

I have a range of dates between 2008-02-25 till 2008-12-25 and I would
like to
count the number of rows which has not empty data (distance field) for the
February 2008, March 2008 etc.

These data a
Date Distance (km)
2008-02-25 25 km
2008-02-26 26 km
2008-02-27 not filled in yet
2008-02-28 not filled in yet
2008-03-01 not filled in yet
etc. etc.

February 2008 - my functions should return 2
March 2008 - my function should return 0

Can you help me how to do it using Excel 2007 functions?

Thank you in advance
Martin




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
Number of days in a running period splodgey Excel Worksheet Functions 1 June 7th 07 01:09 PM
How do I count the number of events in a 90 day period? ericball Excel Worksheet Functions 2 February 12th 07 02:47 AM
How do i get rid of the period in a whole number? newcomer New Users to Excel 3 June 25th 06 09:06 PM
Finding number of particular days in a period girlfriend in school Excel Worksheet Functions 0 July 13th 05 06:36 PM
number of mondays in period nico Excel Discussion (Misc queries) 3 June 10th 05 02:07 AM


All times are GMT +1. The time now is 06:27 AM.

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

About Us

"It's about Microsoft Excel"