Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default COUNT formula help

Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count the
number of times an event occurs in March 2007, March 2006, etc. The dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default COUNT formula help

One way (for March 2007) is
=COUNTIF(A1:A400,"="&DATE(2007,3,1))-COUNTIF(A1:A400,"="&DATE(2007,4,1))
--
David Biddulph

"GeorgeG" wrote in message
...
Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count the
number of times an event occurs in March 2007, March 2006, etc. The dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default COUNT formula help

Here is another way (for March 2007)....

=SUMPRODUCT(--(DATE(2007,3,DAY(A1:A400))=A1:A400))

Rick


"GeorgeG" wrote in message
...
Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count the
number of times an event occurs in March 2007, March 2006, etc. The dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default COUNT formula help

=SUMPRODDUCT(--(MONTH(A2:A100)=3),--(YEAR(A2:A100)=2007))
or
=SUMPRODUCT(--(TEXT(A2:A100,"m/yy")="3/07"))


"GeorgeG" wrote:

Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count the
number of times an event occurs in March 2007, March 2006, etc. The dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default COUNT formula help

David, Rick, Smiley,
My problem is similar. I need to calculate the count of entries that lie-- 1.
btwn today and 1 mnth ago, 2. btwn 1 mnth ago and 3 mnths ago, 3. btwn 3
mnths ago and 6 mnths ago, 4. btwn 6 and 9 mnths ago and 5. greater than 9
mnths ago.
All entries have a date associated with entry in colmn C.
Thanks ahead of tme.


"Teethless mama" wrote:

=SUMPRODDUCT(--(MONTH(A2:A100)=3),--(YEAR(A2:A100)=2007))
or
=SUMPRODUCT(--(TEXT(A2:A100,"m/yy")="3/07"))


"GeorgeG" wrote:

Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count the
number of times an event occurs in March 2007, March 2006, etc. The dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default COUNT formula help

Define "a month ago". For example, what **date** would you consider a month
ago from today? Also, what **date** would you consider a month ago if
today's date were October 31, 2007?

Rick


"Ken" wrote in message
...
David, Rick, Smiley,
My problem is similar. I need to calculate the count of entries that
lie-- 1.
btwn today and 1 mnth ago, 2. btwn 1 mnth ago and 3 mnths ago, 3. btwn 3
mnths ago and 6 mnths ago, 4. btwn 6 and 9 mnths ago and 5. greater than 9
mnths ago.
All entries have a date associated with entry in colmn C.
Thanks ahead of tme.


"Teethless mama" wrote:

=SUMPRODDUCT(--(MONTH(A2:A100)=3),--(YEAR(A2:A100)=2007))
or
=SUMPRODUCT(--(TEXT(A2:A100,"m/yy")="3/07"))


"GeorgeG" wrote:

Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count
the
number of times an event occurs in March 2007, March 2006, etc. The
dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default COUNT formula help

A mnth ago would fall btwn today and 30 days prior today.

"Rick Rothstein (MVP - VB)" wrote:

Define "a month ago". For example, what **date** would you consider a month
ago from today? Also, what **date** would you consider a month ago if
today's date were October 31, 2007?

Rick


"Ken" wrote in message
...
David, Rick, Smiley,
My problem is similar. I need to calculate the count of entries that
lie-- 1.
btwn today and 1 mnth ago, 2. btwn 1 mnth ago and 3 mnths ago, 3. btwn 3
mnths ago and 6 mnths ago, 4. btwn 6 and 9 mnths ago and 5. greater than 9
mnths ago.
All entries have a date associated with entry in colmn C.
Thanks ahead of tme.


"Teethless mama" wrote:

=SUMPRODDUCT(--(MONTH(A2:A100)=3),--(YEAR(A2:A100)=2007))
or
=SUMPRODUCT(--(TEXT(A2:A100,"m/yy")="3/07"))


"GeorgeG" wrote:

Hi there,

I'm trying to create a formula that counts the number of times an event
occurs for any given month, each year. For exmaple, i'd like to count
the
number of times an event occurs in March 2007, March 2006, etc. The
dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default COUNT formula help

Okay, just to be clear then, a month ago from March 1, 2007 would be January
30, 2007 (skipping February entirely), correct?

Are you using the same 30-day month for the other spans (3 months ago would
be 90 days prior to today; 6 month ago would be 180 days prior to today,
etc.)?

Rick


"Ken" wrote in message
...
A mnth ago would fall btwn today and 30 days prior today.

"Rick Rothstein (MVP - VB)" wrote:

Define "a month ago". For example, what **date** would you consider a
month
ago from today? Also, what **date** would you consider a month ago if
today's date were October 31, 2007?

Rick


"Ken" wrote in message
...
David, Rick, Smiley,
My problem is similar. I need to calculate the count of entries that
lie-- 1.
btwn today and 1 mnth ago, 2. btwn 1 mnth ago and 3 mnths ago, 3. btwn
3
mnths ago and 6 mnths ago, 4. btwn 6 and 9 mnths ago and 5. greater
than 9
mnths ago.
All entries have a date associated with entry in colmn C.
Thanks ahead of tme.


"Teethless mama" wrote:

=SUMPRODDUCT(--(MONTH(A2:A100)=3),--(YEAR(A2:A100)=2007))
or
=SUMPRODUCT(--(TEXT(A2:A100,"m/yy")="3/07"))


"GeorgeG" wrote:

Hi there,

I'm trying to create a formula that counts the number of times an
event
occurs for any given month, each year. For exmaple, i'd like to
count
the
number of times an event occurs in March 2007, March 2006, etc. The
dates
stored on my spreadsheet are in the form of dd/mm/yyyy.

Any help would be greatly appreciated!
Cheers




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
Count Formula - Count Ticks LittleAnn Excel Discussion (Misc queries) 3 May 8th 23 07:44 PM
Count Formula Jessica Excel Discussion (Misc queries) 1 August 30th 07 04:49 PM
Trying to construct a count count formula Chris K Excel Discussion (Misc queries) 6 May 26th 07 07:20 PM
Count formula Help... nosaj_enryb Excel Discussion (Misc queries) 3 November 11th 05 10:40 AM
Count If formula Jo Davis Excel Discussion (Misc queries) 6 May 19th 05 01:59 PM


All times are GMT +1. The time now is 04:21 AM.

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"