Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Zerosumgame
 
Posts: n/a
Default Silly question about using dates

I have a multi-page worksheet, sorted out by date and type of work done. I am
looking for a reasonable way to COUNT all the entries in certain months.
Every function i try errors out. And combining MONTH with COUNTIF does not
seem to work. i do not want to SUM them, just to COUNT them.
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Silly question about using dates

Don't discount the sum functions for counting

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

will count all of the dates in A1:A5 that are February (ie equal to 2).

You could also use the regular sum function, but it would have to comitted
w/Control+Shift+Enter

=SUM(--(MONTH(A1:A5)=2))



"Zerosumgame" wrote:

I have a multi-page worksheet, sorted out by date and type of work done. I am
looking for a reasonable way to COUNT all the entries in certain months.
Every function i try errors out. And combining MONTH with COUNTIF does not
seem to work. i do not want to SUM them, just to COUNT them.

  #3   Report Post  
Posted to microsoft.public.excel.misc
zerosumgame
 
Posts: n/a
Default Silly question about using dates

I should add that it seems named ranges do not work in the MONTH command. Am
I wrong on that or just doing it wrong?

"Zerosumgame" wrote:

I have a multi-page worksheet, sorted out by date and type of work done. I am
looking for a reasonable way to COUNT all the entries in certain months.
Every function i try errors out. And combining MONTH with COUNTIF does not
seem to work. i do not want to SUM them, just to COUNT them.

  #4   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Silly question about using dates


There's no reason that you can't use named ranges like

=SUMPRODUCT(--(MONTH(daterange)=2))

.....but you might need to be careful with this formula when counting
January, empty cells will be counted also, so use

=SUMPRODUCT(--(MONTH(daterange)=1),--ISNUMBER(daterange))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528783

  #5   Report Post  
Posted to microsoft.public.excel.misc
Gilles Desjardins
 
Posts: n/a
Default Silly question about using dates

Let me take a wild guess: Try COUNTA(X?:X?)

See if that works. Replacethe X and ? by your own reference

Gilles
"Zerosumgame" wrote in message
...
I have a multi-page worksheet, sorted out by date and type of work done. I
am
looking for a reasonable way to COUNT all the entries in certain months.
Every function i try errors out. And combining MONTH with COUNTIF does not
seem to work. i do not want to SUM them, just to COUNT them.





  #6   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Silly question about using dates

On Fri, 31 Mar 2006 16:33:01 -0800, Zerosumgame
wrote:

I have a multi-page worksheet, sorted out by date and type of work done. I am
looking for a reasonable way to COUNT all the entries in certain months.
Every function i try errors out. And combining MONTH with COUNTIF does not
seem to work. i do not want to SUM them, just to COUNT them.



=COUNTIF(rng,"="&DATE(2006,1,1)) - COUNTIF(rng,""&DATE(2006,1,31)

will give you the count for the month of January 2006

Perhaps you can adapt this to your issue?

If you want the count for ALL january's , then SUMPRODUCT will work.
--ron
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
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Conditional Formatting (Dates) Repost with additional data BigH Excel Discussion (Misc queries) 1 January 29th 06 10:18 PM
US dates to UK?? Bill Excel Worksheet Functions 4 December 8th 05 06:44 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Finding dates within a date range Marcus Excel Worksheet Functions 2 April 5th 05 02:03 AM


All times are GMT +1. The time now is 10:01 AM.

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"