Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Counting records using date parts

Try this:

=SUMPRODUCT(--(MONTH(A1:A100)=2),--(B1:B100=C7))

Note that an empty cell in your date range will be evaluated as month 1
(January). If you need to account for that:

=SUMPRODUCT(--(A1:A100<""),--(MONTH(A1:A100)=1),--(B1:B100=C7))

--
Biff
Microsoft Excel MVP


"Kris" wrote in message
...
Thanks, this is great but I need to put an additional step in that looks
at
the job type. I have used COUNTIF(B1:B100=C7) Now i need to put them
together.

"Bernard Liengme" wrote:

=SUMPRODUCT(--(MONTH(A1:A100)=2))
will count how may of the dates in A1:A100 are in Feb
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Kris" wrote in message
...
I am trying to set up a formula based on a list of records that will
count
how many items occur in a month based on a job function type. The job
function is in one column and the date is in the other.

For instance I have a list of jobs completed in January and February by
date. I want to know how many of Job A were in Jan and how many in Feb.

I have tried SUM,IF,AND and MONTH but I don't seem to be using the
right
combination.






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
Peculiar date format behavior when replacing parts of date Henrik Excel Discussion (Misc queries) 1 March 15th 07 10:58 PM
counting records [email protected] Excel Worksheet Functions 8 September 14th 06 09:38 PM
Counting unique records yhtak Excel Worksheet Functions 6 June 16th 06 02:34 PM
Counting records within a month JoAnn New Users to Excel 1 November 22nd 05 06:15 PM
Counting unique records based on date range aspAddict Excel Worksheet Functions 3 October 26th 05 08:12 PM


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