Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 19
Question Counting # of entries for each month, in a specific status

Morning All,

I need assistance with adding a condition to my "month counting" formula. I currently have two formulas that work (see below). I would like for the formula to only count months that have a status other than closed. Any ideas? Feel free to create a new formula if need be.


Example:
10/12/2012 ABC/13 ACCT4 1112227 Studio
10/30/2012 ABC/13 ACCT2 1112227 Closed
12/3/2012 ABC/13 ACCT5 1112228 Pending
2/12/2013 ABC/13 ACCT6 1112229 Waiting

The count for October is 2 but I want the count to show as 1 because one of entries is closed.


SUMPRODUCT(--($A$1:A$251<""),--(MONTH($A$1:A$251)=1))
SUMPRODUCT((TEXT($A$1:$A$1999,"mm")="01")+0,($A$1: $A$1999<"")+0)

Thanks in advance
Tee
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Counting # of entries for each month, in a specific status

Hi,

Am Wed, 18 Jul 2012 12:33:56 +0000 schrieb Tee51:

10/12/2012 ABC/13 ACCT4 1112227 Studio
10/30/2012 ABC/13 ACCT2 1112227 Closed
12/3/2012 ABC/13 ACCT5 1112228 Pending
2/12/2013 ABC/13 ACCT6 1112229 Waiting

The count for October is 2 but I want the count to show as 1 because one
of entries is closed.


try:
=SUMPRODUCT(--(MONTH(A1:A251)=10),--(E1:E251<"Closed"))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 19
Default

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Wed, 18 Jul 2012 12:33:56 +0000 schrieb Tee51:

10/12/2012 ABC/13 ACCT4 1112227 Studio
10/30/2012 ABC/13 ACCT2 1112227 Closed
12/3/2012 ABC/13 ACCT5 1112228 Pending
2/12/2013 ABC/13 ACCT6 1112229 Waiting

The count for October is 2 but I want the count to show as 1 because one
of entries is closed.


try:
=SUMPRODUCT(--(MONTH(A1:A251)=10),--(E1:E251<"Closed"))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Hey,

Works great but it counts all the blank cells as January which distorts the count.
  #4   Report Post  
Junior Member
 
Posts: 19
Thumbs up

Quote:
Originally Posted by Tee51 View Post
Hey,

Works great but it counts all the blank cells as January which distorts the count.
Got it!
Just added ($A$1:A$251<"") back into the formula.

SUMPRODUCT(--($A$1:A$251<""),--(MONTH($A$1:A$251)=1),--($E$1:$E$251<"Closed"))
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Counting # of entries for each month, in a specific status

Hi,

Am Wed, 18 Jul 2012 20:37:24 +0000 schrieb Tee51:

Works great but it counts all the blank cells as January which distorts
the count.


try:
=SUMPRODUCT(--(YEAR(A1:A251)=2012),--(MONTH(A1:A251)=1),--(E1:E251<"Closed"))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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 of specific month bpoland58 Excel Discussion (Misc queries) 2 December 13th 07 05:46 PM
Counting the number of date entries in a giving month Philgr Excel Discussion (Misc queries) 4 August 22nd 06 10:55 PM
Counting distinct entries based on meeting month & year criteria jennifer Excel Worksheet Functions 3 February 9th 06 01:56 PM
Counting Entries by Month and Year ImaGina Excel Worksheet Functions 1 January 5th 06 06:11 AM
counting date entries by month & year Di Excel Worksheet Functions 7 August 24th 05 08:39 PM


All times are GMT +1. The time now is 05:36 PM.

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"