#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Counting formula

A B
1 Bob 3
2 Bob 10
3 Sue 10

7 8-13 13-20

Bob 1 1 0
Sue 0 1 0
Jeff 0 0 0

Based on the first table, I would like a formula in the second table that
calculates how many of their numbers fall into the specific categories of 7,
8-13, etc.

THANK YOU






  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting formula

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B1007))

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B100=8),--(B1:B100<=13))


"TMF in MN" wrote:

A B
1 Bob 3
2 Bob 10
3 Sue 10

7 8-13 13-20

Bob 1 1 0
Sue 0 1 0
Jeff 0 0 0

Based on the first table, I would like a formula in the second table that
calculates how many of their numbers fall into the specific categories of 7,
8-13, etc.

THANK YOU






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Counting formula

Try something like this:

With
A1:B3 contains your sample data

Then enter these values in A6:D7
Low 7 8 14
High 999999 13 20

And these values in A9:D9
Name 7 8 - 13 14 - 20

AND...A10:A12
Bob
Sue
Jeff

Next:
B10: =SUMPRODUCT(($A$1:$A$3=$A10)*($B$1:$B$3=B$6)*($B$ 1:$B$3<=B$7))
Copy that formula across and down thru D12

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"TMF in MN" wrote:

A B
1 Bob 3
2 Bob 10
3 Sue 10

7 8-13 13-20

Bob 1 1 0
Sue 0 1 0
Jeff 0 0 0

Based on the first table, I would like a formula in the second table that
calculates how many of their numbers fall into the specific categories of 7,
8-13, etc.

THANK YOU






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 Different Names in A Column... Formula? Mhz New Users to Excel 2 August 13th 06 02:04 AM
Subtotal counting formula in cells jimar Excel Discussion (Misc queries) 1 June 1st 06 01:53 AM
FORMULA for COUNTING #S STARTING WITH A 4 IN A RANGE 1 TO 100,000 dbglass Excel Worksheet Functions 2 May 12th 06 08:28 PM
Counting Formula santaviga Excel Worksheet Functions 3 May 9th 06 12:16 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM


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