Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Nested Count if



Hi Guys!

Question is :
Two columns of data
Column A is names (say a1:a10) and includes names Pete and Sam
Column B is date (say jan, feb, march)

I want to COUNT for all entries of Name 1, AND for a date requirement in
Column B. Think its a nested countif....

So in above Example - Sams name may appear four times in column A, and
next to first instance says Jan, second says March, third says Jan and
fourth says Jan... I want a formulae that counts the 4 appearences of
JAN for Sam.... help.... :)

Regareds

D


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Nested Count if

Hi
=SUMPRODUCT(--(A1:A10="Sam"),--(B1:B10="Jan"))

Also see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

"Darin Kramer" wrote:



Hi Guys!

Question is :
Two columns of data
Column A is names (say a1:a10) and includes names Pete and Sam
Column B is date (say jan, feb, march)

I want to COUNT for all entries of Name 1, AND for a date requirement in
Column B. Think its a nested countif....

So in above Example - Sams name may appear four times in column A, and
next to first instance says Jan, second says March, third says Jan and
fourth says Jan... I want a formulae that counts the 4 appearences of
JAN for Sam.... help.... :)

Regareds

D


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Nested Count if

You can also use a simple array formula:

{=SUM((A1:A10=E1)*(B1:B10=E2)) }

where E1 is the name and E2 the date that you want to match in A1:A10 and
B1:B10 respectively.
How it works... eact element of teh 'A' array is either 0 or 1 if it matches
E1. Each element of the 'B' array is also 0 or 1 it there's a match with E2.
then the elements of A are multiplied by B so that where matches are found
the value is 1 else 0

Chip Pearson has an excecellent website with this kind of stuff
http://cpearson.com/excel/array.htm

HTH
Patrick Molloy
Microsoft Excel MVP




"Darin Kramer" wrote:



Hi Guys!

Question is :
Two columns of data
Column A is names (say a1:a10) and includes names Pete and Sam
Column B is date (say jan, feb, march)

I want to COUNT for all entries of Name 1, AND for a date requirement in
Column B. Think its a nested countif....

So in above Example - Sams name may appear four times in column A, and
next to first instance says Jan, second says March, third says Jan and
fourth says Jan... I want a formulae that counts the 4 appearences of
JAN for Sam.... help.... :)

Regareds

D


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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 Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Nested count and vlookups Chrisnelsonusa Excel Discussion (Misc queries) 1 June 6th 05 07:58 PM
What is quicker? Nested or non nested ifs andycharger[_17_] Excel Programming 2 February 25th 04 03:58 PM


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