LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default COUNT formula help

Give these a try...

Within 30 days:
=SUMPRODUCT((A1:A100<=TODAY())*(A1:A100TODAY()-30))

Between 30 days and 90 days:
=SUMPRODUCT((A1:A100<=TODAY()-30)*(A1:A100TODAY()-90))

Between 90 days and 180 days:
=SUMPRODUCT((A1:A100<=TODAY()-90)*(A1:A100TODAY()-180))

Earlier than 180 days:
=SUMPRODUCT((A1:A100<=TODAY()-180)*(A1:A100<""))

Adjust the ranges to match your actual data span.

Rick


"Ken" wrote in message
...
Yes, right.

"Rick Rothstein (MVP - VB)" wrote:

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







 
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 10:38 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"