PC Review


Reply
Thread Tools Rate Thread

Counting TRUE or FALSE

 
 
Paul Gooch
Guest
Posts: n/a
 
      13th Aug 2008
In using a conditional format I am able to change the cell formats
accordingly, but if I am only using basic formats to show the correct or
wrong answer to multiple choice questions then is there any way to count what
is right or wrong to the cells returning a percent correct mark? Maybe by
counting TRUE or FALSE? The answer in the cell is only ever going to be A, B,
C or D...

Regards,

Paul
 
Reply With Quote
 
 
 
 
Teethless mama
Guest
Posts: n/a
 
      13th Aug 2008
=COUNTIF(A:A,TRUE)
=COUNTIF(A:A,FALSE)

"Paul Gooch" wrote:

> In using a conditional format I am able to change the cell formats
> accordingly, but if I am only using basic formats to show the correct or
> wrong answer to multiple choice questions then is there any way to count what
> is right or wrong to the cells returning a percent correct mark? Maybe by
> counting TRUE or FALSE? The answer in the cell is only ever going to be A, B,
> C or D...
>
> Regards,
>
> Paul

 
Reply With Quote
 
Paul Gooch
Guest
Posts: n/a
 
      13th Aug 2008


"Teethless mama" wrote:

> =COUNTIF(A:A,TRUE)
> =COUNTIF(A:A,FALSE)


Thanks for the quick reply, both formula's return 0. Based on my original
question, if I am using conditional formula's to achieve the result requires
a TRUE result to display the format selected. However the values within the
cell will only ever be A, B, C or D. Is there anyway to confirm the
conditional result into an actual result.

Paul
 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      13th Aug 2008
What is the conditional format you are using? In other words, are you
hardcoding each cell to Cell Value, or are you using the FORMULA is. If you
are using the formula is, I am assuming you have an answer key somewhere?
Assuming your questions are being answered in column A, rows 3 through 22,
and your answers are on a separate (possibly hidden) tab named Data, in
column A, rows 3 though 22:
=SUMPRODUCT(--(A3:A22=Data!A3:A22))
will give you the number correct, or true.
--
John C


"Paul Gooch" wrote:

>
>
> "Teethless mama" wrote:
>
> > =COUNTIF(A:A,TRUE)
> > =COUNTIF(A:A,FALSE)

>
> Thanks for the quick reply, both formula's return 0. Based on my original
> question, if I am using conditional formula's to achieve the result requires
> a TRUE result to display the format selected. However the values within the
> cell will only ever be A, B, C or D. Is there anyway to confirm the
> conditional result into an actual result.
>
> Paul

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      13th Aug 2008
In other words, you want to count the correct/incorrect answers?

If that's the case then you need to setup a range of cells as the answer key
then you just compare the answers to the key.

Answer key in the range X1:X5 -

A
C
C
D
B

Users answers to questions in the range A1:A5 -

A
B
C
C
B

=SUMPRODUCT(--(A1:A5=X1:X5))

Result = 3 (correct answers)


--
Biff
Microsoft Excel MVP


"Paul Gooch" <(E-Mail Removed)> wrote in message
news:1167A3CE-7AF7-407E-8D68-(E-Mail Removed)...
>
>
> "Teethless mama" wrote:
>
>> =COUNTIF(A:A,TRUE)
>> =COUNTIF(A:A,FALSE)

>
> Thanks for the quick reply, both formula's return 0. Based on my original
> question, if I am using conditional formula's to achieve the result
> requires
> a TRUE result to display the format selected. However the values within
> the
> cell will only ever be A, B, C or D. Is there anyway to confirm the
> conditional result into an actual result.
>
> Paul



 
Reply With Quote
 
Paul Gooch
Guest
Posts: n/a
 
      13th Aug 2008


"John C" wrote:

> What is the conditional format you are using? In other words, are you
> hardcoding each cell to Cell Value, or are you using the FORMULA is. If you
> are using the formula is, I am assuming you have an answer key somewhere?
> Assuming your questions are being answered in column A, rows 3 through 22,
> and your answers are on a separate (possibly hidden) tab named Data, in
> column A, rows 3 though 22:
> =SUMPRODUCT(--(A3:A22=Data!A3:A22))
> will give you the number correct, or true.


John,

That is great thanks, I did not hard code but by doing that all worked
great, thanks ever so much...

Paul
 
Reply With Quote
 
Paul Gooch
Guest
Posts: n/a
 
      13th Aug 2008


"T. Valko" wrote:

> In other words, you want to count the correct/incorrect answers?
>
> If that's the case then you need to setup a range of cells as the answer key
> then you just compare the answers to the key.
>
> Answer key in the range X1:X5 -
>
> A
> C
> C
> D
> B
>
> Users answers to questions in the range A1:A5 -
>
> A
> B
> C
> C
> B
>
> =SUMPRODUCT(--(A1:A5=X1:X5))
>
> Result = 3 (correct answers)


Hi,

Thanks for that, as soon as I saw reference to "hardcoding" I knew there was
no other way, but the SUMPRODUCT worked great, I've never used that before.

Thanks to all who replied...

Paul
 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      13th Aug 2008
You're welcome!

--
Biff
Microsoft Excel MVP


"Paul Gooch" <(E-Mail Removed)> wrote in message
news:F6086B6D-193B-4E22-B52B-(E-Mail Removed)...
>
>
> "T. Valko" wrote:
>
>> In other words, you want to count the correct/incorrect answers?
>>
>> If that's the case then you need to setup a range of cells as the answer
>> key
>> then you just compare the answers to the key.
>>
>> Answer key in the range X1:X5 -
>>
>> A
>> C
>> C
>> D
>> B
>>
>> Users answers to questions in the range A1:A5 -
>>
>> A
>> B
>> C
>> C
>> B
>>
>> =SUMPRODUCT(--(A1:A5=X1:X5))
>>
>> Result = 3 (correct answers)

>
> Hi,
>
> Thanks for that, as soon as I saw reference to "hardcoding" I knew there
> was
> no other way, but the SUMPRODUCT worked great, I've never used that
> before.
>
> Thanks to all who replied...
>
> Paul



 
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
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Microsoft Excel Discussion 9 29th Jul 2008 12:28 AM
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Microsoft Excel Programming 9 29th Jul 2008 12:28 AM
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Microsoft Excel Misc 9 29th Jul 2008 12:28 AM
Function to return True/False if all are validated as True by ISNU =?Utf-8?B?VGV0c3V5YSBPZ3VtYQ==?= Microsoft Excel Worksheet Functions 2 15th Mar 2006 10:28 AM
counting mulitple true/false fields in a query john Microsoft Access Reports 1 26th Dec 2003 05:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:17 PM.