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

I have a column with lots of dates in.

I want a formula to count the number of dates, ie jan 2006 = 12

Any ideas,
Ive tried CountIf, and 2006 but i think the date formatting is messing
with it.


--
Mark

http://www.mozilla.com/firefox/ - Firefox Rules!
http://fireftp.mozdev.org/ - FTP Plugin for Firefox
http://ietab.mozdev.org/ - IE tab. Get Windows updates in Firefox
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting Dates

Try this:

=SUMPRODUCT(--(TEXT(A1:A100,"mmm yyyy")="Jan 2006"))

--
Biff
Microsoft Excel MVP


"Mark Solesbury" <marksolesbury@asearchenginethatnowdoeseverythingm ail.com
wrote in message ...
I have a column with lots of dates in.

I want a formula to count the number of dates, ie jan 2006 = 12

Any ideas,
Ive tried CountIf, and 2006 but i think the date formatting is messing
with it.


--
Mark

http://www.mozilla.com/firefox/ - Firefox Rules!
http://fireftp.mozdev.org/ - FTP Plugin for Firefox
http://ietab.mozdev.org/ - IE tab. Get Windows updates in Firefox



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Counting Dates

Try:

=SUMPRODUCT((MONTH(A1:A100)=1)*(YEAR(A1:A100)=2008 ))

Change the month number, year and range to suit.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Mark Solesbury" <marksolesbury@asearchenginethatnowdoeseverythingm ail.com
wrote in message ...
I have a column with lots of dates in.

I want a formula to count the number of dates, ie jan 2006 = 12

Any ideas,
Ive tried CountIf, and 2006 but i think the date formatting is messing
with it.


--
Mark

http://www.mozilla.com/firefox/ - Firefox Rules!
http://fireftp.mozdev.org/ - FTP Plugin for Firefox
http://ietab.mozdev.org/ - IE tab. Get Windows updates in Firefox



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Counting Dates

Hi Mark.

Here are couple of alternatives:

=SUMPRODUCT((MONTH(A2:A37)=5)*(YEAR(A2:A37)=2008))

=SUM((A2:A37=D3)*(A2:A37<=E3))
here you enter the first and last day of a month in the cells D3 and E3.
This formula is an array formula so you press Shift+Ctrl+Enter to enter it.

=SUMPRODUCT(--((TEXT(A2:A37,"M YY")="5 08")))
or its equivalent array version
=SUM(N((TEXT(A2:A37,"M YY")="5 08")))

All of these approaches assume the date in the range are entered as dates
not text.

Cheers,
Shane Devenshire
Microsoft Excel MVP



"Mark Solesbury" <marksolesbury@asearchenginethatnowdoeseverythingm ail.com
wrote in message ...
I have a column with lots of dates in.

I want a formula to count the number of dates, ie jan 2006 = 12

Any ideas,
Ive tried CountIf, and 2006 but i think the date formatting is messing
with it.


--
Mark

http://www.mozilla.com/firefox/ - Firefox Rules!
http://fireftp.mozdev.org/ - FTP Plugin for Firefox
http://ietab.mozdev.org/ - IE tab. Get Windows updates in Firefox


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
counting occasions dates occur between 2 dates hoyt New Users to Excel 5 June 16th 06 08:11 AM
Counting Dates..is it possible? ResearcherGirl New Users to Excel 2 April 20th 06 12:28 AM
Counting dates, within a list of dates jrheinschm Excel Worksheet Functions 7 April 19th 06 06:13 PM
Counting Dates #2 Cody Excel Discussion (Misc queries) 3 November 27th 05 04:15 PM
COUNTING DATES Cody Excel Discussion (Misc queries) 3 November 27th 05 03:51 AM


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