Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2004

Tip: Looking for answers? Try searching our database.

COUNTIF Worksheet Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 08 Apr 2004 19:50 GMT
Say I have a column containing dates as below:

               A                    B                  C
1    27 May 2003
2     03 Jun 2003
3     05 Jun 2003
4     22 Jun 2003
5     15 Jul 2003
6     10 Aug 2003

I want to count how many instances Jun 2003 is listed, regardless of the
day.  I tried the COUNTIF worksheet function, but it only works if I
actually list the exact date, and then it only counts the instances
where that exact date is listed (example:  =COUNTIF(A1:A6,"05 Jun 2003")
equals 1).  Does anyone know of a formula that I can use that will count
how many instances a particular month/year appear in a huge
spreadsheet.  In the example above I'm expecting the value to equal 3.
I tried using a wildcard (*) in place of the day number (example:
=COUNTIF(A1:A6,"* Jun 2003"), but I only get a return of zero.  Help!

Thanks,

John
Frank Kabel - 08 Apr 2004 20:07 GMT
Hi
try
=SUMPRODUCT(--(YEAR(A1:A100)=2003),--(MONTH(A1:A100)=6))

Signature

Regards
Frank Kabel
Frankfurt, Germany

> Say I have a column containing dates as below:
>
[quoted text clipped - 20 lines]
>
> John
John - 08 Apr 2004 20:18 GMT
Frank, you are TOO GOOD!!!!!  That's the 2nd time you've helped me out of
a jam.  Thank you so much!  Have a great Easter!

John

> Hi
> try
[quoted text clipped - 29 lines]
> >
> > John
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.