#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default 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
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
Linking Sales Order to Sales History Data Koomba Excel Worksheet Functions 6 September 30th 08 06:06 AM
Calculating sales commission that changes based on a sales volume Elbowes Excel Worksheet Functions 2 June 8th 07 02:48 PM
Sales Invoicing linked to Sales ledger(Accounts Receivable) Cache Excel Discussion (Misc queries) 0 May 15th 07 03:41 PM
Add Sales Goals to Sales Report in Pivot Table Ronster Excel Discussion (Misc queries) 1 October 13th 06 04:17 AM


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