#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Plz Help Me

I have one problem
Date Conditions
1 10-10-2005 Pass
2 10-10-2005 Fail
3 12-10-2005 Pass
4 12-10-2005 Pass
5 13-10-2005 Fail
6 14-10-2005 Pass
7 14-10-2005 Pass
8 15-10-2005 Fail
9 17-10-2005 Pass
10 18-10-2005 Fail

I want to Count no of Pass Conditions From 10-10-2005 To 17-10-2005
(1 week). What is formula for this problem. Plz help me.

Regards,
SVN



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Plz Help Me

You can use the formula
=SUMPRODUCT(((C1:C10)="Pass")*1,((B1:B10)=38635)* 1,((B1:B10)<=38642)*1)
Where C1:C10 contains pass or fail and B1:B10 contains your dates. In the
formula "38635" is the number value that Excel represents the date 10/10/2005
as and "38642" is the number value that Excel represents the date 17/10/2005
as. You can find out these values by changing the number format to general
on any cell that contains a date.

Hope this helps.

"Sachin Narute" wrote:

I have one problem
Date Conditions
1 10-10-2005 Pass
2 10-10-2005 Fail
3 12-10-2005 Pass
4 12-10-2005 Pass
5 13-10-2005 Fail
6 14-10-2005 Pass
7 14-10-2005 Pass
8 15-10-2005 Fail
9 17-10-2005 Pass
10 18-10-2005 Fail

I want to Count no of Pass Conditions From 10-10-2005 To 17-10-2005
(1 week). What is formula for this problem. Plz help me.

Regards,
SVN



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Plz Help Me

=sumproduct(--(A1:A10=DateValue("10-10-2005")),--(A1:A10<=DateValue("10-17-
2005")),--(B1:B10="Pass))

--
Regards,
Tom Ogilvy


"Sachin Narute" wrote in message
...
I have one problem
Date Conditions
1 10-10-2005 Pass
2 10-10-2005 Fail
3 12-10-2005 Pass
4 12-10-2005 Pass
5 13-10-2005 Fail
6 14-10-2005 Pass
7 14-10-2005 Pass
8 15-10-2005 Fail
9 17-10-2005 Pass
10 18-10-2005 Fail

I want to Count no of Pass Conditions From 10-10-2005 To 17-10-2005
(1 week). What is formula for this problem. Plz help me.

Regards,
SVN





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Plz Help Me

=SUMPRODUCT(--(A2:A100=--"2005-10-10"),--(A2:A100<=--"2005-10-17"),--(B2:B1
00="Pass"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sachin Narute" wrote in message
...
I have one problem
Date Conditions
1 10-10-2005 Pass
2 10-10-2005 Fail
3 12-10-2005 Pass
4 12-10-2005 Pass
5 13-10-2005 Fail
6 14-10-2005 Pass
7 14-10-2005 Pass
8 15-10-2005 Fail
9 17-10-2005 Pass
10 18-10-2005 Fail

I want to Count no of Pass Conditions From 10-10-2005 To 17-10-2005
(1 week). What is formula for this problem. Plz help me.

Regards,
SVN





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Plz Help Me

Thank You Sir,

Regards,

SACHIN

"William Horton" wrote:

You can use the formula
=SUMPRODUCT(((C1:C10)="Pass")*1,((B1:B10)=38635)* 1,((B1:B10)<=38642)*1)
Where C1:C10 contains pass or fail and B1:B10 contains your dates. In the
formula "38635" is the number value that Excel represents the date 10/10/2005
as and "38642" is the number value that Excel represents the date 17/10/2005
as. You can find out these values by changing the number format to general
on any cell that contains a date.

Hope this helps.

"Sachin Narute" wrote:

I have one problem
Date Conditions
1 10-10-2005 Pass
2 10-10-2005 Fail
3 12-10-2005 Pass
4 12-10-2005 Pass
5 13-10-2005 Fail
6 14-10-2005 Pass
7 14-10-2005 Pass
8 15-10-2005 Fail
9 17-10-2005 Pass
10 18-10-2005 Fail

I want to Count no of Pass Conditions From 10-10-2005 To 17-10-2005
(1 week). What is formula for this problem. Plz help me.

Regards,
SVN



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



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