PC Review


Reply
Thread Tools Rate Thread

How to calculate pass/fail percentages entered on a spreadsheet?

 
 
=?Utf-8?B?SmVubmE=?=
Guest
Posts: n/a
 
      5th Aug 2006
I am trying to set up a spreadsheet with driving test results including one
column to say pass one to say fail and calculate the percentage of each on a
monthly basis. I can enter the info but don't know how to calculate the
percentages
 
Reply With Quote
 
 
 
 
VBA Noob
Guest
Posts: n/a
 
      5th Aug 2006

Hi

I've just assumed the pass and fails are in Col A.


I then put this formula in B1 to Count the number of passes and divid
by the number of Pass or Fails

=SUMPRODUCT(--($A$1:$A$1000="*pass*"))/COUNTA(A:A)

Same formula to find Fails

=SUMPRODUCT(--($A$1:$A$1000="*fail*"))/COUNTA(A:A)

Then Format cells as %

VBA Noo

--
VBA Noo
-----------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...fo&userid=3383
View this thread: http://www.excelforum.com/showthread.php?threadid=56863

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      5th Aug 2006
I don't think that wild cards will work like that.

But if Pass (or Fail) is the only word in the cell:
=SUMPRODUCT(--($A$1:$A$1000="fail"))/COUNTA(A:A)
will work ok.

And if pass and fail are included in longer strings:

=SUMPRODUCT(--ISNUMBER(SEARCH("fail",$A$1:$A$1000)))/COUNTA(A:A)

will look within each cell.

(Similar formulas for Pass.)



VBA Noob wrote:
>
> Hi
>
> I've just assumed the pass and fails are in Col A.
>
> I then put this formula in B1 to Count the number of passes and divide
> by the number of Pass or Fails
>
> =SUMPRODUCT(--($A$1:$A$1000="*pass*"))/COUNTA(A:A)
>
> Same formula to find Fails
>
> =SUMPRODUCT(--($A$1:$A$1000="*fail*"))/COUNTA(A:A)
>
> Then Format cells as %
>
> VBA Noob
>
> --
> VBA Noob
> ------------------------------------------------------------------------
> VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
> View this thread: http://www.excelforum.com/showthread...hreadid=568630


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to calculate percentages nars Microsoft Excel Worksheet Functions 3 17th Nov 2008 02:15 PM
whole Numbers entered; percentages displayed. =?Utf-8?B?bWV0YzcyMQ==?= Microsoft Excel Charting 2 21st Oct 2007 01:45 PM
calculate percentages =?Utf-8?B?Y2FybHRvbg==?= Microsoft Excel Worksheet Functions 1 17th Nov 2004 07:05 PM
Calculate Percentages Lindsay Cowell Microsoft Excel Discussion 3 31st Jan 2004 12:36 AM
Calculate Percentages Fiona Microsoft Access Queries 1 4th Nov 2003 04:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:30 PM.