Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Counting occurrences by date

Good morning:

I need some help with the following. I have a range of dates in the format
MM/DD/YY and need to count occurrences by day, current week and current
month. Any help would be greatly appreciated.
--
Thanks,

Larry
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting occurrences by date


this day
=COUNTIF(A2:A200,TODAY())

this week
=SUMPRODUCT(--(A2:A200=TODAY()-WEEKDAY(TODAY())+1),--(A2:A200<TODAY()-WEEKDAY(TODAY())+8))

this month
=SUMPRODUCT(--(MONTH(A2:A200)=10))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"lwilliams" wrote in message
...
Good morning:

I need some help with the following. I have a range of dates in the
format
MM/DD/YY and need to count occurrences by day, current week and current
month. Any help would be greatly appreciated.
--
Thanks,

Larry



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Counting occurrences by date

Hi Bob:

Thanks for the answer. Seems like you are the one who always helps me. I
do appreciate it.
--
Larry


"Bob Phillips" wrote:


this day
=COUNTIF(A2:A200,TODAY())

this week
=SUMPRODUCT(--(A2:A200=TODAY()-WEEKDAY(TODAY())+1),--(A2:A200<TODAY()-WEEKDAY(TODAY())+8))

this month
=SUMPRODUCT(--(MONTH(A2:A200)=10))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"lwilliams" wrote in message
...
Good morning:

I need some help with the following. I have a range of dates in the
format
MM/DD/YY and need to count occurrences by day, current week and current
month. Any help would be greatly appreciated.
--
Thanks,

Larry




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
Counting occurrences with conditions Neil Perry Excel Discussion (Misc queries) 2 September 10th 08 03:00 PM
Counting occurrences GARY Excel Discussion (Misc queries) 3 August 13th 08 10:06 PM
Counting occurrences GARY Excel Discussion (Misc queries) 3 August 13th 08 09:51 PM
Counting occurrences on a particular date smore Excel Worksheet Functions 6 April 19th 07 11:22 PM
Counting number of occurrences LyleB_Austin Excel Worksheet Functions 1 September 15th 05 10:42 PM


All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"