Return salesperson with maximum sales per client

meamuka

New Member
Joined
Aug 27, 2016
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi, thanks for reading this post!

(1) I have a table with the data, like this:
ClientSalespersonSales ($)
GoogleMike1,000
AppleJim5,000
AppleGeorge4,000
AppleGeorge3,000
.........

(2) On another sheet, I'm creating a report, like this:
ClientFrequent/Max SalespersonSales ($)
GoogleMike1,000
AppleGeorge7,000

I'm having a headache finding the formula for second column. I'm running 365 and I've tried the following: Nesting a MAXIFS with a SUMIFS, looking with a XLOOKUP then. This doesn't work so I see there must be a way for this.

I would appreciate your help!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I'm running 365
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
+Fluff 1.xlsm
ABCDEFGH
1ClientSalespersonSales ($)ClientFrequent/Max SalespersonSales ($)
2GoogleMike1,000GoogleMike1000
3AppleJim5,000AppleGeorge7000
4AppleGeorge4,000
5AppleGeorge3,000
6
7
8
9
Main
Cell Formulas
RangeFormula
F2:F3F2=UNIQUE(FILTER(A2:A100,A2:A100<>""))
G2:H3G2=LET(u,UNIQUE(FILTER($B$2:$B$100,$A$2:$A$100=F2)),INDEX(SORT(CHOOSE({1,2},u,SUMIFS($C$2:$C$100,$B$2:$B$100,u)),2,-1),1,{1,2}))
Dynamic array formulas.
 
Upvote 0
Solution
Thank you Sir this works great!

I had the "Sales ($)' Column already doing another calculation, so I truncated your formula to do just my second column.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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