Sumifs Sales Report

lizomgwtf

New Member
Joined
Mar 20, 2013
Messages
10
Hello,

I am trying to provide commissions statements to my sales people. My sales report lists all levels for each account: Salesperson, Sales Manager, and Director. In some cases, the employee ID in all three columns is the same person (the department director manages a few highly important accounts.) I am trying to sum the total sales for each person without double or triple counting any rows. I'm having trouble returning the sales for all accounts of a director using sumifs. In this example, Employee 1 and 2 exist in multiple columns, but I only want to count each account once. Each period, there are multiple changes and managers and directors fill in at different levels based on leaves, personnel changes, etc. I also don't want to ever miss some sales when an employee gets a promotion. How can I sumifs the sales column if the Employee's ID exists in ANY of the 3 columns?

[TABLE="width: 500"]
<tbody>[TR]
[TD]Director[/TD]
[TD]Manager[/TD]
[TD]Salesperson[/TD]
[TD]Account[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Employee 1[/TD]
[TD]Employee 1[/TD]
[TD]ABC Company[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Employee 1[/TD]
[TD]Employee 2[/TD]
[TD]DEF Company[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Employee 2[/TD]
[TD]Employee 2[/TD]
[TD]GHI Company[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Employee 1[/TD]
[TD]Employee 2[/TD]
[TD]Employee 3[/TD]
[TD]XYZ Company[/TD]
[TD]900[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi,

Is this the output you need?


Book1
ABCDE
1DirectorManagerSalespersonAccountSales
2Employee 1Employee 1Employee 1ABC Company$500.00
3Employee 1Employee 1Employee 2DEF Company$600.00
4Employee 1Employee 2Employee 2GHI Company$200.00
5Employee 1Employee 2Employee 3XYZ Company$900.00
6
7DirectorManagerSalesperson
8Employee 122001100$500.00
9Employee 201100$800.00
10Employee 300$900.00
Sheet1
Cell Formulas
RangeFormula
B8=SUMPRODUCT((A$1&A$2:A$5=B$7&$A8)*$E$2:$E$5)
 
Upvote 0
Not really. Essentially, the total that Employee 1 is due commissions on is 2200. As I have it right now, my formulas are trying to pay him on 3800 worth of sales. This report is huge and varies in size and order every month. I need a formula to count each account he is owner of (in any capacity) only once and return his total eligible sales in a single sell on my calculation sheet.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top