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 Countif Function for dates in a range

I want to count a range of data if a cell in a range is within a date range.
I n others, If column D is a range of dates for a 12 month period, how can I
count the # of dates tthat are in the date range 8-1-2007 through 8-31-2007?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Countif Function for dates in a range

Try in say, E1:
=SUMPRODUCT(--(TEXT(D2:D100,"mmmyy")="Aug07"))
Adapt the range to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Mbanker" wrote:
I want to count a range of data if a cell in a range is within a date range.
I n others, If column D is a range of dates for a 12 month period, how can I
count the # of dates tthat are in the date range 8-1-2007 through 8-31-2007?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Countif Function for dates in a range

On Wed, 22 Aug 2007 14:28:00 -0700, Mbanker
wrote:

I want to count a range of data if a cell in a range is within a date range.
I n others, If column D is a range of dates for a 12 month period, how can I
count the # of dates tthat are in the date range 8-1-2007 through 8-31-2007?


=countif(d:d,"="&date(2007,8,1)) -
countif(d:d,""&date(2007,8,31))


--ron
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
A week of dates and counting them using the COUNTIF function with contingencies j razz Excel Worksheet Functions 8 March 22nd 07 12:19 AM
Need help on countif and sumif function with dates and wildcard characters chinita_jill Excel Discussion (Misc queries) 5 July 19th 06 05:22 PM
Excel COUNTIF Function - a range as criteria ? joes Excel Worksheet Functions 2 March 6th 06 01:13 PM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
CountIf Function - require range of criterea John F Excel Worksheet Functions 10 April 27th 05 10:55 PM


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