Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ben Blair
 
Posts: n/a
Default Advanced Count functions

I have a list of three important data. In column A I have a subject (math,
science, etc.), in column B I have a code for the one student who got it
right, and in column c I have the codes of any students who guessed wrong. I
want to create a list at the bottom of each individual students right and
wrong in each subject (i.e., Bob had 14 right in math, 8 wrong in math, 6
right in science... etc.). What combination of functions can I use to count
by means of the subject and the student's two-digit code? Thanks.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If there is a subject for all codes like

A B C
math code1 code2
math code3
math

etc. then you can use

=SUMPRDUCT(--(A2:A200="math"),--(B2:B200="studentcode1"))

count passed tests for student1, replace the criteria with cell references
and type the criteria there will avoid editing of the formula, change to
C2:C200 (whatever range you are using) and count failed tests


Regards,

Peo Sjoblom

"Ben Blair" wrote:

I have a list of three important data. In column A I have a subject (math,
science, etc.), in column B I have a code for the one student who got it
right, and in column c I have the codes of any students who guessed wrong. I
want to create a list at the bottom of each individual students right and
wrong in each subject (i.e., Bob had 14 right in math, 8 wrong in math, 6
right in science... etc.). What combination of functions can I use to count
by means of the subject and the student's two-digit code? Thanks.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

If by chance your data looks like this

A B C
math code1 code 2, code 3
math code 1 code 3, code 2

then use

=SUMPRODUCT(--(A2:A200="math"),--(ISNUMBER(FIND("code 1",C2;C200))))

for the failures (Peo's still applies to passes)


I offer this because of the way I read this statement

in column B I have a code for the one student who got it
right, and in column c I have the codes of any students who guessed wrong

--

HTH

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


"Peo Sjoblom" wrote in message
...
If there is a subject for all codes like

A B C
math code1 code2
math code3
math

etc. then you can use

=SUMPRDUCT(--(A2:A200="math"),--(B2:B200="studentcode1"))

count passed tests for student1, replace the criteria with cell references
and type the criteria there will avoid editing of the formula, change to
C2:C200 (whatever range you are using) and count failed tests


Regards,

Peo Sjoblom

"Ben Blair" wrote:

I have a list of three important data. In column A I have a subject

(math,
science, etc.), in column B I have a code for the one student who got it
right, and in column c I have the codes of any students who guessed

wrong. I
want to create a list at the bottom of each individual students right

and
wrong in each subject (i.e., Bob had 14 right in math, 8 wrong in math,

6
right in science... etc.). What combination of functions can I use to

count
by means of the subject and the student's two-digit code? Thanks.



  #4   Report Post  
Ben Blair
 
Posts: n/a
Default

I'm a bit confused. Let's suppose my data looks like this:
A B C
Math AA AD
Lit AA AC
Art AB AE

The results will be in a table like this:
code Math R Math W
AA x y
AB
AC

What exact formula belongs in x or y?
  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

as Peo gave you

--

HTH

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


"Ben Blair" wrote in message
...
I'm a bit confused. Let's suppose my data looks like this:
A B C
Math AA AD
Lit AA AC
Art AB AE

The results will be in a table like this:
code Math R Math W
AA x y
AB
AC

What exact formula belongs in x or y?





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 Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Excel IF and COUNT functions Robin Faulkner Excel Worksheet Functions 2 February 18th 05 06:34 PM
Using Dates in Count functions HWade Excel Worksheet Functions 1 December 6th 04 10:25 PM


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