Formula to find group with highest sales per supplier

JV0710

Active Member
Joined
Oct 26, 2006
Messages
440
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Good Evening All
Please can I get some help with a formula :

In the view below I would like a formula in column E that sums the sales by Supplier (column B) in each group (column A) and returns the Group where the highest sales occurred for each supplier, irrespective of product (column c). So, as the table below column E has "Grp3" for all rows with supplier 1 and Grp 2 for all rows with supplier 2 etc

Thanks in advance

1676048573017.png
 
Not a problem, try
Excel Formula:
=INDEX(SORTBY(UNIQUE($A$2:$A$15),SUMIFS(D:D,B:B,B2,A:A,UNIQUE($A$2:$A$15)),-1),1)
This one works perfectly Fluff . . . Thanks very much for your help.
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Thanks very much to you both, Fluff and Dante . . . I will use both solutions to publish the final worksheet and for my team to learn new approaches. How do I mark the post solved for both answers ?
 
Upvote 0
How do I mark the post solved for both answers ?
You can't. You just decide which one is best for you. The mark as solution is not to give the helpers a 'score card' but to help future readers by letting them know that an answer to the question exists in the thread and to make it easy to find. :)
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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