Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default How do I set up a COUNTIF with more than one condition?

I'm using Excel [MS Office 2000 Professional in Windows XP] to list new and
continuing students and want to set up a summary sheet that captures numbers
of students by category. The lists are set up with a column each for degree
program, concentration, specific interest, admission date, graduation date,
etc.:

Student Name / degree / concentration / interest ...

In the summary sheet, I want to tally a count of students in a cross-section
of categories -- the number of DSci students, for example, in the EER
concentration who have a specific interest in RA.

Q1: How can I set up a COUNTIF to include a number of conditions -- that
is, to count those entries where (value in col B = DSci) and (value in col C
= EER) and (value in col D = RA)?
Q2: is there a different way to get at cross-category counts without using
COUNTIF?

Gail
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How do I set up a COUNTIF with more than one condition?

See if something like the following will work for you.

=SUMPRODUCT((B1:B10="Dsci")*(C1:C10="EER")*(D1:D10 ="RA"))


Mark


Gail wrote:
I'm using Excel [MS Office 2000 Professional in Windows XP] to list new and
continuing students and want to set up a summary sheet that captures numbers
of students by category. The lists are set up with a column each for degree
program, concentration, specific interest, admission date, graduation date,
etc.:

Student Name / degree / concentration / interest ...

In the summary sheet, I want to tally a count of students in a cross-section
of categories -- the number of DSci students, for example, in the EER
concentration who have a specific interest in RA.

Q1: How can I set up a COUNTIF to include a number of conditions -- that
is, to count those entries where (value in col B = DSci) and (value in col C
= EER) and (value in col D = RA)?
Q2: is there a different way to get at cross-category counts without using
COUNTIF?

Gail


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default How do I set up a COUNTIF with more than one condition?

It looks like you are looking for SumProduct. Check out this link...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"Gail" wrote:

I'm using Excel [MS Office 2000 Professional in Windows XP] to list new and
continuing students and want to set up a summary sheet that captures numbers
of students by category. The lists are set up with a column each for degree
program, concentration, specific interest, admission date, graduation date,
etc.:

Student Name / degree / concentration / interest ...

In the summary sheet, I want to tally a count of students in a cross-section
of categories -- the number of DSci students, for example, in the EER
concentration who have a specific interest in RA.

Q1: How can I set up a COUNTIF to include a number of conditions -- that
is, to count those entries where (value in col B = DSci) and (value in col C
= EER) and (value in col D = RA)?
Q2: is there a different way to get at cross-category counts without using
COUNTIF?

Gail

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How do I set up a COUNTIF with more than one condition?

=sumproduct(--(a1:a10="something"),--(b1:b10="somethingelse"))
(would be one way to count two criteria

Just keep adding more arguments to that formula--and change the range--but don't
use the whole column.

But I think I'd use data|pivottable instead of a bunch of =sumproduct()
formulas.

If you want to read more about pivottables...

Here are a few links:

Debra Dalgleish's pictures at Jon Peltier's site:
http://peltiertech.com/Excel/Pivots/pivottables.htm
And Debra's own site:
http://www.contextures.com/xlPivot01.html

John Walkenbach also has some at:
http://j-walk.com/ss/excel/files/general.htm
(look for Tony Gwynn's Hit Database)

Chip Pearson keeps Harald Staff's notes at:
http://www.cpearson.com/excel/pivots.htm

MS has some at (xl2000 and xl2002):
http://office.microsoft.com/downloads/2000/XCrtPiv.aspx
http://office.microsoft.com/assistan...lconPT101.aspx

Gail wrote:

I'm using Excel [MS Office 2000 Professional in Windows XP] to list new and
continuing students and want to set up a summary sheet that captures numbers
of students by category. The lists are set up with a column each for degree
program, concentration, specific interest, admission date, graduation date,
etc.:

Student Name / degree / concentration / interest ...

In the summary sheet, I want to tally a count of students in a cross-section
of categories -- the number of DSci students, for example, in the EER
concentration who have a specific interest in RA.

Q1: How can I set up a COUNTIF to include a number of conditions -- that
is, to count those entries where (value in col B = DSci) and (value in col C
= EER) and (value in col D = RA)?
Q2: is there a different way to get at cross-category counts without using
COUNTIF?

Gail


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default How do I set up a COUNTIF with more than one condition?

Most excellent! Thank you, Mark, that works like a charm. And looks like I
could go on extending the set of conditions -- very nifty!
Gail

"Mark Driscol" wrote:

See if something like the following will work for you.

=SUMPRODUCT((B1:B10="Dsci")*(C1:C10="EER")*(D1:D10 ="RA"))


Mark


Gail wrote:
I'm using Excel [MS Office 2000 Professional in Windows XP] to list new and
continuing students and want to set up a summary sheet that captures numbers
of students by category. The lists are set up with a column each for degree
program, concentration, specific interest, admission date, graduation date,
etc.:

Student Name / degree / concentration / interest ...

In the summary sheet, I want to tally a count of students in a cross-section
of categories -- the number of DSci students, for example, in the EER
concentration who have a specific interest in RA.

Q1: How can I set up a COUNTIF to include a number of conditions -- that
is, to count those entries where (value in col B = DSci) and (value in col C
= EER) and (value in col D = RA)?
Q2: is there a different way to get at cross-category counts without using
COUNTIF?

Gail



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
countif with a condition and contains @ Pete_UK Excel Worksheet Functions 1 March 18th 10 09:15 AM
countif where condition should be met SCC Excel Worksheet Functions 3 September 28th 09 08:47 PM
COUNTIF - Condition Sandesh Excel Discussion (Misc queries) 7 August 24th 08 08:58 AM
COUNTIF - more than one condition Gary Excel Worksheet Functions 4 May 8th 07 08:46 PM
Compound condition with COUNTIF Mike McLellan Excel Discussion (Misc queries) 1 November 29th 05 10:50 AM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"