Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Advanced count function

Lets say my data looks like this:
A B
5 Travis
4 Travis
3 Nick
2 Travis
1 Don
9 Mike

How do I make a count function that looks at that and the logic is:
If A is less than 4 and B equals Travis

And just to clearify that I understand if I get an answer, how would I do:
If A is greater than 2 and A less than 15 and B equals Travis

To verify, I want the number returned of how many results there are.
Thank you for looking, and for your help/time.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Advanced count function

Forgot to say, this is Excel 2003.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,231
Default Advanced count function

Eric wrote...
Lets say my data looks like this:
A B
5 Travis
4 Travis
3 Nick
2 Travis
1 Don
9 Mike

How do I make a count function that looks at that and the logic
is: If A is less than 4 and B equals Travis


=SUMPRODUCT((A2:A7<4)*(B2:B7="Travis"))

And just to clearify that I understand if I get an answer, how
would I do: If A is greater than 2 and A less than 15 and B
equals Travis

....

=SUMPRODUCT((A2:A72)*(A2:A7<15)*(B2:B7="Travis"))

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Advanced count function

First one:
=SUMPRODUCT(--(A2:A10<4),--(B2:B10="Travis"))

Second one:
=SUMPRODUCT(--(A2:A102),--(A2:A10<15),--(B2:B10="Travis"))

HTH,
Paul

"Eric" wrote in message
...
Lets say my data looks like this:
A B
5 Travis
4 Travis
3 Nick
2 Travis
1 Don
9 Mike

How do I make a count function that looks at that and the logic is:
If A is less than 4 and B equals Travis

And just to clearify that I understand if I get an answer, how would I do:
If A is greater than 2 and A less than 15 and B equals Travis

To verify, I want the number returned of how many results there are.
Thank you for looking, and for your help/time.




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
Advanced Filters - 'or' function Louise Excel Discussion (Misc queries) 3 April 16th 07 03:52 PM
Advanced text function Eva Excel Worksheet Functions 5 April 2nd 07 09:30 PM
Advanced IF function wrinkle35 Excel Worksheet Functions 2 September 28th 05 09:13 PM
Advanced unique cell count with multiple conditions ... help! Flystar Excel Worksheet Functions 3 September 25th 05 03:50 AM
Advanced Count functions Ben Blair Excel Discussion (Misc queries) 4 May 26th 05 03:02 PM


All times are GMT +1. The time now is 10:40 PM.

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"