Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Countif with date range criteria

I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).

I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.

Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Countif with date range criteria

=SUMPRODUCT(--(D2:D5000<""),--(month(M2:M5000)=5),--(year(M2:M5000)=2007))

HTH,
Paul

--

"luisi" wrote in message
...
I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).

I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.

Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Countif with date range criteria

Assuming you have dates in column M:

=SUMPRODUCT((D2:D5000<"")*(MONTH(M2:M5000)=5)*(YE AR(M2:M5000)=2007))

Hope this helps.

Pete

On Mar 28, 4:18*pm, luisi wrote:
I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).

I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.

Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Countif with date range criteria

=SUMPRODUCT(--(MONTH(M2:M5000)=5),--(YEAR(M2:M5000)=2007),--(D2:D5000<""))

--
Gary''s Student - gsnu200776


"luisi" wrote:

I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).

I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.

Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Countif with date range criteria

Perfect. Thanks guys, I orginally got most of it but I'm still shaky on
quotation marks and parathesis!

"Pete_UK" wrote:

Assuming you have dates in column M:

=SUMPRODUCT((D2:D5000<"")*(MONTH(M2:M5000)=5)*(YE AR(M2:M5000)=2007))

Hope this helps.

Pete

On Mar 28, 4:18 pm, luisi wrote:
I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).

I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.

Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Countif with date range criteria

Thanks for feeding back , Luisi.

Put each condition in brackets, and either use the double-unary -- and
separate the terms with a comma, or use the asterisk between terms as
I have.

Pete

On Mar 28, 5:01*pm, luisi wrote:
Perfect. Thanks guys, I orginally got most of it but I'm still shaky on
quotation marks and parathesis!



"Pete_UK" wrote:
Assuming you have dates in column M:


=SUMPRODUCT((D2:D5000<"")*(MONTH(M2:M5000)=5)*(YE AR(M2:M5000)=2007))


Hope this helps.


Pete


On Mar 28, 4:18 pm, luisi wrote:
I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).


I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.


Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007- Hide quoted text -


- Show quoted text -


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: 2 criteria: Date Range Column & Text Column MAC Excel Worksheet Functions 14 September 16th 08 04:39 PM
CountIf for a range with multiple criteria Marco Excel Discussion (Misc queries) 5 August 27th 07 01:10 PM
How do I put a date range in the criteria of a countif formula? hlpmelrn Excel Discussion (Misc queries) 3 November 23rd 06 03:12 AM
SUM(COUNTIF(range,NOT Criteria)) Santa-D Excel Worksheet Functions 3 January 31st 06 03:43 AM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM


All times are GMT +1. The time now is 04:32 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"