Formula to assist with counting dates

D

Dilly

Could somebody please assist with a formula to count the number of dates in
February 2009 for example, from a "long" list of random dates.
We have a helpdesk function that logs calls and am trying to establish how
many calls we received in February 2009
 
M

Mike H

Hi,

Put this in a cell and drag dwom 11 rows to get a monthly count for each
month of 2009

=SUMPRODUCT(--(MONTH($A$1:$A$30)=ROW(A1)),--(YEAR($A$1:$A$30)=2009))

Change range to suit.

Mike
 
J

Jacob Skaria

Suppose you have dates in ColA, number of dates in February is .

=SUMPRODUCT(--(MONTH(A1:A1000)=2))

If this post helps click Yes
 
J

Jacob Skaria

Missed out the year

=SUMPRODUCT(--(MONTH(A1:A100)=2),--(YEAR(A1:A100)=2009))

If this post helps click Yes
 
J

Jacob Skaria

OR

=SUMPRODUCT(--(TEXT(A1:A1000,"mmyyyy")="022009"))

If this post helps click Yes
 
J

Jarek Kujawa

another way:

=SUM(IF((MONTH(A1:A100)=2)*(YEAR(A1:A100)=2009),1,)

this is an array formula so CTRL+SHIFT+ENTER it instead of simply
using ENTER

adjust yr ranges to suit
 
D

Dilly

Is it possible to utilise this formula, however, by just highlighting the
column column as the range, as opposed to physically highlighting from
A1-A1000. If i use this folrmula and highlight column A as opposed to
A1:A1000 i get a NUM error

Thanks in advance

Mark
 
D

Dilly

Is it possible to utilise the formula below , however, by just highlighting
the
column as the range, as opposed to physically highlighting from
A1-A1000. If i use this folrmula and highlight column A as opposed to
A1:A1000 i get a NUM error

=SUMPRODUCT(--(MONTH(A1:A100)=2),--(YEAR(A1:A100)=2009))
 
J

Jacob Skaria

You will have to remove the headers and other text data to use this formula.
or other wise this will return an error...

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top