#1   Report Post  
Old January 20th 05, 02:05 PM
Tricia
 
Posts: n/a
Default pass fail

Hi how would I set up a column to give the average of pass to fail rate?
i.e. if A1 50 then put pass in C3 else put fail then give the average of
passes to fails in cell C20 if there were 19 rows?

Thanks Tricia



  #2   Report Post  
Old January 20th 05, 02:37 PM
Tricia
 
Posts: n/a
Default


"Tricia" wrote in message
...
Hi how would I set up a column to give the average of pass to fail rate?
i.e. if A1 50 then put pass in C3 else put fail then give the average of
passes to fails in cell C20 if there were 19 rows?

Thanks Tricia


Hi in cells C1:C125 I have

=IF(A150,"pass","fail")
to
=IF(A12550,"pass","fail")
how do I get an average of the cells C1:C125

Thanks Tricia


  #3   Report Post  
Old January 20th 05, 03:07 PM
JulieD
 
Posts: n/a
Default

Hi Tricia

(is this homework? - sounds like the sort of problem i set as a revision
exercise)

however, i'm not exactly sure what an an average of passes to fails is but
i'm guessing that the COUNTIF function is the way to go. - if this is
homework stop reading now and go try it



number of passes
=COUNTIF(C1:C19,"pass")

number of fails
=COUNTIF(C1:C19,"fail")

Cheers
JulieD

"Tricia" wrote in message
...

"Tricia" wrote in message
...
Hi how would I set up a column to give the average of pass to fail rate?
i.e. if A1 50 then put pass in C3 else put fail then give the average
of passes to fails in cell C20 if there were 19 rows?

Thanks Tricia


Hi in cells C1:C125 I have

=IF(A150,"pass","fail")
to
=IF(A12550,"pass","fail")
how do I get an average of the cells C1:C125

Thanks Tricia



  #4   Report Post  
Old January 20th 05, 03:45 PM
JE McGimpsey
 
Posts: n/a
Default

what do you mean "average of passes to fails"?

There will be a single discrete number of passes, and a single discrete
number of failures. What is there to average?

If you mean the *ratio* of passes to fails, assuming

C1: =IF(A150,"pass","fail"), or

C1: =IF(A1="","",IF(A150,"pass","fail"))

Then

C20: =COUNTIF(C1:C19,"pass")/COUNTIF(C1:C19,"fail")

or if you mean the ratio of passes to total attempts:

C20: =COUNTIF(C1:C19,"pass")/SUM(COUNTIF(C1:C19,{"pass","fail"}))



In article ,
"Tricia" wrote:

Hi how would I set up a column to give the average of pass to fail rate?
i.e. if A1 50 then put pass in C3 else put fail then give the average of
passes to fails in cell C20 if there were 19 rows?



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
How to pass a workshhet name as a parameter into a subroutine ? yigalb Excel Discussion (Misc queries) 4 January 9th 05 10:28 AM


All times are GMT +1. The time now is 08:19 AM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017