Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default counting in columns

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default counting in columns

Hi,

So, names in column A and test scores in columns B,C & D. We can ignore
column A because from you question you only want to know how many not who. So
for 15 in test A & B

=SUMPRODUCT((B2:B2515)*(C2:C2515))

and for 15 in all 3 tests

=SUMPRODUCT((B2:B2515)*(C2:C2515)*(D2:D2515))

Change the ranges to suit.


Mike

"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default counting in columns

Hi Mike,
I still get #N/A. The formula that brings my data into columns is
=IF($Y300,LOOKUP($Y30,$AR$20:AR$62,AS$20:AS$62)," "). This gives #N/A in
empty cells - do I need to change that?
Thanks for your help
Mrs T

"Mike H" wrote:

Hi,

So, names in column A and test scores in columns B,C & D. We can ignore
column A because from you question you only want to know how many not who. So
for 15 in test A & B

=SUMPRODUCT((B2:B2515)*(C2:C2515))

and for 15 in all 3 tests

=SUMPRODUCT((B2:B2515)*(C2:C2515)*(D2:D2515))

Change the ranges to suit.


Mike

"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default counting in columns

Hi,

I just found your other thread and noticed the NA problem. the best way is
to eliminate the NA but you can leave them there and do it like this with an
array formula. See below on how to enter an array formula

For 15 in columns B & C

=COUNT(IF(B2:B2515,IF(C2:C2515,1)))

and for all three

=COUNT(IF(B2:B2515,IF(C2:C2515,IF(D2:D2515,1))) )


This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default counting in columns

Hi Mike,
I got a reply on the other thread that works - and so does yours though it's
different!! I'm pleased I didn't have to get rid of the #N/A in the other
columns as I wouldn't have a clue where to start!
Thanks very much for your help.
Mrs T :)

"Mike H" wrote:

Hi,

I just found your other thread and noticed the NA problem. the best way is
to eliminate the NA but you can leave them there and do it like this with an
array formula. See below on how to enter an array formula

For 15 in columns B & C

=COUNT(IF(B2:B2515,IF(C2:C2515,1)))

and for all three

=COUNT(IF(B2:B2515,IF(C2:C2515,IF(D2:D2515,1))) )


This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default counting in columns

Your welcome and thanks for the feedback.

I just looked at the other solution, it's just 2 different approaches to the
same thing. In my formula I provide the value to sum (the 1 at the end) so
theres no need to check if each value is a number.

Mike

"Mrs T." wrote:

Hi Mike,
I got a reply on the other thread that works - and so does yours though it's
different!! I'm pleased I didn't have to get rid of the #N/A in the other
columns as I wouldn't have a clue where to start!
Thanks very much for your help.
Mrs T :)

"Mike H" wrote:

Hi,

I just found your other thread and noticed the NA problem. the best way is
to eliminate the NA but you can leave them there and do it like this with an
array formula. See below on how to enter an array formula

For 15 in columns B & C

=COUNT(IF(B2:B2515,IF(C2:C2515,1)))

and for all three

=COUNT(IF(B2:B2515,IF(C2:C2515,IF(D2:D2515,1))) )


This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default counting in columns

Hi Mike,
is it possible to use a similar formula to count cells that contain text
without specifying what the text is?
Mrs T

"Mike H" wrote:

Your welcome and thanks for the feedback.

I just looked at the other solution, it's just 2 different approaches to the
same thing. In my formula I provide the value to sum (the 1 at the end) so
theres no need to check if each value is a number.

Mike

"Mrs T." wrote:

Hi Mike,
I got a reply on the other thread that works - and so does yours though it's
different!! I'm pleased I didn't have to get rid of the #N/A in the other
columns as I wouldn't have a clue where to start!
Thanks very much for your help.
Mrs T :)

"Mike H" wrote:

Hi,

I just found your other thread and noticed the NA problem. the best way is
to eliminate the NA but you can leave them there and do it like this with an
array formula. See below on how to enter an array formula

For 15 in columns B & C

=COUNT(IF(B2:B2515,IF(C2:C2515,1)))

and for all three

=COUNT(IF(B2:B2515,IF(C2:C2515,IF(D2:D2515,1))) )


This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default counting in columns

Yes, counting non-specified text strings is dooable, give an example of what
your trying to do

Mike

"Mrs T." wrote:

Hi Mike,
is it possible to use a similar formula to count cells that contain text
without specifying what the text is?
Mrs T

"Mike H" wrote:

Your welcome and thanks for the feedback.

I just looked at the other solution, it's just 2 different approaches to the
same thing. In my formula I provide the value to sum (the 1 at the end) so
theres no need to check if each value is a number.

Mike

"Mrs T." wrote:

Hi Mike,
I got a reply on the other thread that works - and so does yours though it's
different!! I'm pleased I didn't have to get rid of the #N/A in the other
columns as I wouldn't have a clue where to start!
Thanks very much for your help.
Mrs T :)

"Mike H" wrote:

Hi,

I just found your other thread and noticed the NA problem. the best way is
to eliminate the NA but you can leave them there and do it like this with an
array formula. See below on how to enter an array formula

For 15 in columns B & C

=COUNT(IF(B2:B2515,IF(C2:C2515,1)))

and for all three

=COUNT(IF(B2:B2515,IF(C2:C2515,IF(D2:D2515,1))) )


This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike


"Mrs T." wrote:

Please can anyone help - I am trying to set up a sheet for test scores. I
have a column for the name, a column for test A, a column for test B and a
column for test C results. How can I count how many people have scored over
15 in both tests A and B and how many people have scored over 15 in all three
tests? I am using Excel 2003. I got some help from Pete last night but didn't
get it sorted, I think because I am using a look up table (see thread below)
- 3:00 in the morning is maybe not the best time!
Thanks
Mrs T

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
counting in columns Mrs T. Excel Worksheet Functions 9 May 2nd 09 10:13 PM
Counting in Columns Bernie R. Excel Worksheet Functions 4 February 11th 08 07:28 PM
Counting in two columns PedersenJ Excel Worksheet Functions 3 August 8th 06 12:24 AM
Counting data in columns telewats Excel Discussion (Misc queries) 1 February 21st 06 03:35 PM
counting columns jpcblood Excel Worksheet Functions 1 August 10th 05 12:41 AM


All times are GMT +1. The time now is 04:41 PM.

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"