#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default countif

Can anyone help please!!!
I need to count the occurences of date vales (non specific) between the 1st
and 31st of each month. Dates are posted in a column and the name range
called Presentations.
So far I have
tried:countif(presentations,and("="&"1/3/2008","<="&"31/3/2008")). The
result has to state how many presentations occured between the dates
specified. The only other way was to break it down to weekly occurences
(multiple countif) and them sum them.
Majestyk
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 222
Default countif

This would do the same thing:

=SUMPRODUCT(--(MONTH(presentations)=1))

Change the month to 2 for February.

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"majestyk" wrote:

Can anyone help please!!!
I need to count the occurences of date vales (non specific) between the 1st
and 31st of each month. Dates are posted in a column and the name range
called Presentations.
So far I have
tried:countif(presentations,and("="&"1/3/2008","<="&"31/3/2008")). The
result has to state how many presentations occured between the dates
specified. The only other way was to break it down to weekly occurences
(multiple countif) and them sum them.
Majestyk

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default countif

If its for dates falling within a certain month/year:
=SUMPRODUCT(--(TEXT(presentations,"mmmyyyy")="Mar2008"))

If its for a certain date range which may straddle across months,
then something unambiguous like this:
=SUMPRODUCT((presentations=--"1 Feb 2008")*(presentations<=--"15 Mar 2008"))

Real dates are presumed within the defined range: presentations

Pl mark responses which help by clicking the YES buttons below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"majestyk" wrote:
I need to count the occurences of date vales (non specific) between the 1st
and 31st of each month. Dates are posted in a column and the name range
called Presentations.
So far I have
tried:countif(presentations,and("="&"1/3/2008","<="&"31/3/2008")). The
result has to state how many presentations occured between the dates
specified. The only other way was to break it down to weekly occurences
(multiple countif) and them sum them

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
Countif massi Excel Worksheet Functions 4 July 31st 06 07:58 AM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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

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"