PC Review


Reply
Thread Tools Rate Thread

counting how many times a certain month appears

 
 
MM
Guest
Posts: n/a
 
      3rd May 2010
Hi all,

Fourth try's a charm....I'm getting errors trying to post my question. Here
it is...
1 workbook, 4 worksheets each named for a different office.
Column A for each sheet is the date in the following format 03-May-10.
I need to count how many times May appears in column A, range A3:A5000, from
the 'Montreal Office' worksheet. I thought I could use =countif but from
other posts, it seems maybe =sumproduct is the better option. I need your
help. My stats are due pretty soon.

Looking forward to your replies.
MM
 
Reply With Quote
 
 
 
 
Luke M
Guest
Posts: n/a
 
      3rd May 2010
Yes, you want to use:
=SUMPRODUCT(--(MONTH('Montreal Office'!A3:A5000)=5))

or

=SUMPRODUCT(--(TEXT('Montreal Office'!A3:A5000,"ddd")="May"))

--
Best Regards,

Luke M
"MM" <(E-Mail Removed)> wrote in message
news:6A125606-B87C-46EE-9A07-(E-Mail Removed)...
> Hi all,
>
> Fourth try's a charm....I'm getting errors trying to post my question.
> Here
> it is...
> 1 workbook, 4 worksheets each named for a different office.
> Column A for each sheet is the date in the following format 03-May-10.
> I need to count how many times May appears in column A, range A3:A5000,
> from
> the 'Montreal Office' worksheet. I thought I could use =countif but from
> other posts, it seems maybe =sumproduct is the better option. I need your
> help. My stats are due pretty soon.
>
> Looking forward to your replies.
> MM



 
Reply With Quote
 
MM
Guest
Posts: n/a
 
      4th May 2010
That's awesome. It works for me.
Thanks for spelling it out for me. Wasn't quite sure of myself and didn't
want to screw up the rest of my work. Thanks again Luke.

MM

"Luke M" wrote:

> Yes, you want to use:
> =SUMPRODUCT(--(MONTH('Montreal Office'!A3:A5000)=5))
>
> or
>
> =SUMPRODUCT(--(TEXT('Montreal Office'!A3:A5000,"ddd")="May"))
>
> --
> Best Regards,
>
> Luke M
> "MM" <(E-Mail Removed)> wrote in message
> news:6A125606-B87C-46EE-9A07-(E-Mail Removed)...
> > Hi all,
> >
> > Fourth try's a charm....I'm getting errors trying to post my question.
> > Here
> > it is...
> > 1 workbook, 4 worksheets each named for a different office.
> > Column A for each sheet is the date in the following format 03-May-10.
> > I need to count how many times May appears in column A, range A3:A5000,
> > from
> > the 'Montreal Office' worksheet. I thought I could use =countif but from
> > other posts, it seems maybe =sumproduct is the better option. I need your
> > help. My stats are due pretty soon.
> >
> > Looking forward to your replies.
> > MM

>
>
> .
>

 
Reply With Quote
 
MM
Guest
Posts: n/a
 
      5th May 2010
Hi Luke,
The SUMPRODUCT worked great until I got to Jan. I entered the formula for
our fiscal year (april 2010 to March 2011) and everything after May has a 0
for an answer so far except for Jan. The only one giving me a problem. It's
giving me a very large number. I'm assuming the last number in the formula
is the month (5=May, 4=Apr etc...)
So, I tried the second formula you provided. That solved the problem for
Jan (giving me a 0 for an answer) but screwed up Apr and May by also giving
it a 0.
I would like to keep the same formula for all of the months. Remember, my
date format is 1-May-10. Would the 1 in the day or year affect the outcome?
Something's not right. I need your help.

MM
"Luke M" wrote:

> Yes, you want to use:
> =SUMPRODUCT(--(MONTH('Montreal Office'!A3:A5000)=5))
>
> or
>
> =SUMPRODUCT(--(TEXT('Montreal Office'!A3:A5000,"ddd")="May"))
>
> --
> Best Regards,
>
> Luke M
> "MM" <(E-Mail Removed)> wrote in message
> news:6A125606-B87C-46EE-9A07-(E-Mail Removed)...
> > Hi all,
> >
> > Fourth try's a charm....I'm getting errors trying to post my question.
> > Here
> > it is...
> > 1 workbook, 4 worksheets each named for a different office.
> > Column A for each sheet is the date in the following format 03-May-10.
> > I need to count how many times May appears in column A, range A3:A5000,
> > from
> > the 'Montreal Office' worksheet. I thought I could use =countif but from
> > other posts, it seems maybe =sumproduct is the better option. I need your
> > help. My stats are due pretty soon.
> >
> > Looking forward to your replies.
> > MM

>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting occurences specific month appears MM Microsoft Excel Worksheet Functions 4 4th May 2010 04:27 PM
Counting the times a number appears Jennifer B Microsoft Excel Misc 2 17th Jul 2008 11:54 PM
counting the number of times a word appears =?Utf-8?B?QWRyaWVubmU=?= Microsoft Excel Worksheet Functions 5 5th Sep 2007 02:49 AM
Searching for text & counting how many times it appears =?Utf-8?B?c21jaw==?= Microsoft Excel Worksheet Functions 5 15th Sep 2006 12:28 PM
how many times a particular day of the week appears in a given month CheapTequila Microsoft Excel Misc 4 8th Aug 2006 12:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:11 PM.