Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Countif across two separate columns with multiple criteria

Hi,
I'm trying to count across two columns with the aim of being able to say all
children aged 5-7 rated this a 1, all children aged 3-4 rated this 2, etc.
Below is an example of the data I'm working with:
Col W Col X Col Y
Age Score
3 2 3
4 1 3
4 1 4
5 2 4
2 1 4
5 2 4
7 2 4


So I'm interested in finding out how many 3-4 year olds in Col W scored 1 in
Col y.

Can anyone help?!!
Andy

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Countif across two separate columns with multiple criteria

To do this count ..
.. how many 3-4 year olds in Col W scored 1 in Col y

use something like this:
=SUMPRODUCT((W2:W10=3)*(W2:W10<=4)*(Y2:Y10=1))

This part of it: (W2:W10=3)*(W2:W10<=4)
shows a more generic way to grab the desired age range in col W (albeit your
age range happened to be the minimum in this instance, only 2 ages)
Inspiring? hit the YES below
--
Max
Singapore
---
"AndyR" wrote:
I'm trying to count across two columns with the aim of being able to say all
children aged 5-7 rated this a 1, all children aged 3-4 rated this 2, etc.
Below is an example of the data I'm working with:
Col W Col X Col Y
Age Score
3 2 3
4 1 3
4 1 4
5 2 4
2 1 4
5 2 4
7 2 4


So I'm interested in finding out how many 3-4 year olds in Col W scored 1 in
Col y.

Can anyone help?!!
Andy

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 with multiple criteria in separate Columns Felicia Excel Discussion (Misc queries) 4 July 13th 09 09:27 PM
sumproduct using criteria from multiple columns in a separate wksh brownmre Excel Worksheet Functions 1 February 10th 09 11:24 PM
COUNTIF for criteria in two separate columns (Excel 2003) Mimi Excel Worksheet Functions 5 January 11th 07 09:06 PM
Countif using criteria in multiple columns ImaGina Excel Worksheet Functions 1 September 14th 06 07:31 PM
can countif function look at 2 separate columns for criteria blake7 Excel Worksheet Functions 2 March 16th 06 08:07 PM


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