Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Counting sales
I have a table of sales by salesman by month. An individual salesman's name
can appear in multiple rows in the table and cells of 0 sales can be blank or contain 0. =SUMIF($A$2:$A$116,$A130,B$2:B$116) works fine for summarizing total monthly revenue for each salesman by month. How do I use COUNTIF or something like it to count the number of sales,i e: non-zero entries per month per salesman? COUNTIF lacks the 3rd parameter to match the salesman's name while counting entries in a different column like SUMIF. I don't want to write a VB function to do this because a lot of people use this spreadsheet and none are knowledgeable about changing trust center settings. I appreciate your help, -John |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Counting sales
=SUMPRODUCT(--($A$2:$A$20,"salesman"), --(B2:B20<0),--(B2:B20<"")) -- __________________________________ HTH Bob "John" wrote in message ... I have a table of sales by salesman by month. An individual salesman's name can appear in multiple rows in the table and cells of 0 sales can be blank or contain 0. =SUMIF($A$2:$A$116,$A130,B$2:B$116) works fine for summarizing total monthly revenue for each salesman by month. How do I use COUNTIF or something like it to count the number of sales,i e: non-zero entries per month per salesman? COUNTIF lacks the 3rd parameter to match the salesman's name while counting entries in a different column like SUMIF. I don't want to write a VB function to do this because a lot of people use this spreadsheet and none are knowledgeable about changing trust center settings. I appreciate your help, -John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Linking Sales Order to Sales History Data | Excel Worksheet Functions | |||
Calculating sales commission that changes based on a sales volume | Excel Worksheet Functions | |||
Sales Invoicing linked to Sales ledger(Accounts Receivable) | Excel Discussion (Misc queries) | |||
Add Sales Goals to Sales Report in Pivot Table | Excel Discussion (Misc queries) |