Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i need to know how to calculate of the subtotal for below:
A B C D E F Year Quater Week Department Agent Action 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny Yes 2005 1 1 Sales Fanny TBA 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny No Subtotal for the Agent's action. For example Fanny - No : 3, Yes = 1...etc Your help is much appreciated. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You might like using COUNTIF
-- Don Guillett SalesAid Software wrote in message ups.com... i need to know how to calculate of the subtotal for below: A B C D E F Year Quater Week Department Agent Action 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny Yes 2005 1 1 Sales Fanny TBA 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny No Subtotal for the Agent's action. For example Fanny - No : 3, Yes = 1...etc Your help is much appreciated. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
One way =SUMPRODUCT(--($E2:$E100="Fanny"),--($F$2:$F$200="Yes")) will count the Yes answers. Change size of ranges to suit. Better still, in another part of the sheet say columns K to M. In L1 enter Yes, in M1 enter No, in K2 enter Fanny then in cell L2 =SUMPRODUCT(--($E2:$E100=$K2),--($F$2:$F$200=L$1)) copy across to M2 If you enter more agents names down column K, then just copy l2:M2 down the page. If you need to bring in Week number as well, add ,--($C$2:$C$100=1) (or = cell containing week number required) before the last bracket in the formula above. =SUMPRODUCT(--($E2:$E100=$K2),--($F$2:$F$200=L$1),--($C$2:$C$100=1)) -- Regards Roger Govier wrote in message ups.com... i need to know how to calculate of the subtotal for below: A B C D E F Year Quater Week Department Agent Action 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny Yes 2005 1 1 Sales Fanny TBA 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny No Subtotal for the Agent's action. For example Fanny - No : 3, Yes = 1...etc Your help is much appreciated. Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming you have more than Fanny as an agent, you might look at using a
pivot table to give you a summary in one step. http://www.contextures.com/tiptech.html Debra Dalgleish's site - look under P and Pivot Table -- Regards, Tom Ogilvy wrote in message ups.com... i need to know how to calculate of the subtotal for below: A B C D E F Year Quater Week Department Agent Action 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny Yes 2005 1 1 Sales Fanny TBA 2005 1 1 Sales Fanny No 2005 1 1 Sales Fanny No Subtotal for the Agent's action. For example Fanny - No : 3, Yes = 1...etc Your help is much appreciated. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Subtotal and IF Formula | Excel Discussion (Misc queries) | |||
Using a Max Subtotal a Formula | Excel Worksheet Functions | |||
Subtotal Formula | Excel Worksheet Functions | |||
Subtotal Formula | Excel Worksheet Functions | |||
Formula Help - If and Subtotal(???) | Excel Discussion (Misc queries) |