Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default Formula to count Month in Dates

Hi, i have dates in one column cells (please see below)

10/06/2005
24/06/2005
03/08/2005
23/08/2005
18/09/2005
21/09/2005
28/09/2005
30/09/2005
05/10/2005
08/10/2005
18/10/2005
19/10/2005
02/11/2005
22/11/2005
26/11/2005
06/12/2005
16/12/2005
21/12/2005

i need a formula in next cell of each date to count the dates which
have same month like in top two dates i have month 6 so formula should
go throw all dates and see which dates are have month 6 and count them
and count result should come to 2 as we got only two dates which are
in month 6. and fourmula should also do same with other dates. i am
trying to count the total of all those dates which have same months.
Please if anybody can help. i dont need macro
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Formula to count Month in Dates

=SUMPRODUCT(--(MONTH(A1:A20)=1))

if any can be blank use

=SUMPRODUCT(--(MONTH(A1:A20)=1),--)A1:A20<""))

--
---
HTH

Bob


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



"K" wrote in message
...
Hi, i have dates in one column cells (please see below)

10/06/2005
24/06/2005
03/08/2005
23/08/2005
18/09/2005
21/09/2005
28/09/2005
30/09/2005
05/10/2005
08/10/2005
18/10/2005
19/10/2005
02/11/2005
22/11/2005
26/11/2005
06/12/2005
16/12/2005
21/12/2005

i need a formula in next cell of each date to count the dates which
have same month like in top two dates i have month 6 so formula should
go throw all dates and see which dates are have month 6 and count them
and count result should come to 2 as we got only two dates which are
in month 6. and fourmula should also do same with other dates. i am
trying to count the total of all those dates which have same months.
Please if anybody can help. i dont need macro



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Formula to count Month in Dates

One way:

B1: =SUMPRODUCT(--(MONTH($A$1:$A$18)=MONTH(A1)))

Copy down as needed.

In article
,
K wrote:

Hi, i have dates in one column cells (please see below)

10/06/2005
24/06/2005
03/08/2005
23/08/2005
18/09/2005
21/09/2005
28/09/2005
30/09/2005
05/10/2005
08/10/2005
18/10/2005
19/10/2005
02/11/2005
22/11/2005
26/11/2005
06/12/2005
16/12/2005
21/12/2005

i need a formula in next cell of each date to count the dates which
have same month like in top two dates i have month 6 so formula should
go throw all dates and see which dates are have month 6 and count them
and count result should come to 2 as we got only two dates which are
in month 6. and fourmula should also do same with other dates. i am
trying to count the total of all those dates which have same months.
Please if anybody can help. i dont need macro

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default Formula to count Month in Dates

On 2 Jan, 17:03, JE McGimpsey wrote:
One way:

B1: * * *=SUMPRODUCT(--(MONTH($A$1:$A$18)=MONTH(A1)))

Copy down as needed.

In article
,



*K wrote:
Hi, i have dates in one column cells (please see below)


10/06/2005
24/06/2005
03/08/2005
23/08/2005
18/09/2005
21/09/2005
28/09/2005
30/09/2005
05/10/2005
08/10/2005
18/10/2005
19/10/2005
02/11/2005
22/11/2005
26/11/2005
06/12/2005
16/12/2005
21/12/2005


i need a formula in next cell of each date to count the dates which
have same month like in top two dates i have month 6 so formula should
go throw all dates and see which dates are have month 6 and count them
and count result should come to 2 as we got only two dates which are
in month 6. *and fourmula should also do same with other dates. *i am
trying to count the total of all those dates which have same months.
Please if anybody can help. *i dont need macro- Hide quoted text -


- Show quoted text -


Thanks everyone specially JE Mcgimpsey
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Formula to count Month in Dates

Put this in a cell and drag down 12 rows for Jan to December

=SUMPRODUCT(--(MONTH($A$1:$A$20)=ROW(A1)))

Mike

"K" wrote:

Hi, i have dates in one column cells (please see below)

10/06/2005
24/06/2005
03/08/2005
23/08/2005
18/09/2005
21/09/2005
28/09/2005
30/09/2005
05/10/2005
08/10/2005
18/10/2005
19/10/2005
02/11/2005
22/11/2005
26/11/2005
06/12/2005
16/12/2005
21/12/2005

i need a formula in next cell of each date to count the dates which
have same month like in top two dates i have month 6 so formula should
go throw all dates and see which dates are have month 6 and count them
and count result should come to 2 as we got only two dates which are
in month 6. and fourmula should also do same with other dates. i am
trying to count the total of all those dates which have same months.
Please if anybody can help. i dont need macro



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
count total dates for each month Skipper.c Excel Discussion (Misc queries) 2 July 21st 09 02:06 AM
count the occurance of a particular month in a column of dates Ray Sr Excel Worksheet Functions 2 July 3rd 08 06:13 AM
Count the dates in a month s2m via OfficeKB.com Excel Discussion (Misc queries) 5 August 4th 06 05:38 PM
Count dates for previous month [email protected] Excel Worksheet Functions 3 April 30th 06 08:40 PM
count dates within range by year and month Isaiah25 Excel Worksheet Functions 10 May 4th 05 10:22 PM


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