Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to count number of occurences of two different things at o

Typo because I had to shift the $ sign and didn't release it quick enough
when doing the 2 :-(

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Cairan O''Toole" wrote in message
...
Dear Bob,
After trying it numerous times you are correct but there was one small
error
in the code. It should read:
=SUMPRODUCT(--($C$2:$C$20=1),--($D$2:$D$20="Adult"))

Thanks!!!
Yours,
Cairan

"Bob Phillips" wrote:

=SUMPRODUCT(--($C$":$C$20=1),--($D$2:$D$20="Adult"))

etc


If you put the quadrant and group in cells, it will be easier to drag the
fromula down, auto updating, such as


=SUMPRODUCT(--($C$":$C$20=M1),--($D$2:$D$20=N1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Cairan O'Toole" <Cairan wrote in
message
...
Does anyone know how I would count the number of times two things
happen?
For
instance there are the following columns

Column A: FirstName
Column B: LastName
Column C: Quadrant
Column D: Group

There are four different quadrants (i.e. 1,2,3,4) and three different
groups
(Adult, youth, child).
How do I calculate how many Adults are in quadrant 1, how many in
quadrant
2, how many in quadrant 3, etc. and the same for the youth and child
groups?
I have tried many many times...
Please help,
Cairan






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 number of occurences within a time range [email protected] Excel Discussion (Misc queries) 9 January 20th 13 05:54 PM
COUNTIF cannot count decimal number occurences Ignorasmus Excel Worksheet Functions 2 January 20th 07 09:13 PM
count number of occurences on a particular date [email protected] Excel Worksheet Functions 4 December 7th 06 09:11 PM
How to count number of occurences in an autofilter list sho Excel Worksheet Functions 1 May 16th 05 12:24 PM
count number of occurences within a string Gabriel Excel Worksheet Functions 2 November 25th 04 04:17 PM


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