Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default count between two date with one more condition

I have data like following

WO createdate grp1
1 20/02/2007 a
2 21/02/2007 a
3 23/02/2007 a
4 24/02/2007 a
5 25/02/2007 a
6 26/02/2007 a
7 20/02/2007 b
8 21/02/2007 b
9 23/02/2007 b
10 24/02/2007 b
11 25/02/2007 b
12 26/02/2007 b


I want to calcutale total no of records for each group between Specific Date


Like this:

20/02/2007 -23/02/2007 23/02/2007- 26-02/2007
a 3 3
b 3 3

Can Anybody help its urgent

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default count between two date with one more condition

Assuming dates are in B2:B13 and "a" and "b" are in C2:C13, try:

=SUMPRODUCT(--(B2:B13=DATE(2007,2,20)),
--(B2:B13<=DATE(2007,2,23)),--(C2:C13="a"))

=SUMPRODUCT(--(B2:B13=DATE(2007,2,20)),
--(B2:B13<=DATE(2007,2,23)),--(C2:C13="b"))


Of course, you could use cell references for the following items:
DATE(2007,2,20)
DATE(2007,2,23)
"a"
"b"




"count between two date with one more con" wrote:

I have data like following

WO createdate grp1
1 20/02/2007 a
2 21/02/2007 a
3 23/02/2007 a
4 24/02/2007 a
5 25/02/2007 a
6 26/02/2007 a
7 20/02/2007 b
8 21/02/2007 b
9 23/02/2007 b
10 24/02/2007 b
11 25/02/2007 b
12 26/02/2007 b


I want to calcutale total no of records for each group between Specific Date


Like this:

20/02/2007 -23/02/2007 23/02/2007- 26-02/2007
a 3 3
b 3 3

Can Anybody help its urgent

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 cells with condition Amanda Excel Worksheet Functions 2 October 13th 07 06:59 PM
Count occurences in array with condition Val Excel Worksheet Functions 2 August 27th 06 04:22 PM
count col-A if col-B = condition Balhar Excel Worksheet Functions 8 January 18th 06 09:52 PM
count on condition / Formula SAM ONG Excel Worksheet Functions 1 November 18th 05 10:56 AM
Count the occurence of more than one condition wutang1105 Excel Worksheet Functions 1 August 26th 05 07:21 PM


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