Formula to find group with highest sales per supplier

JV0710

Active Member
Joined
Oct 26, 2006
Messages
429
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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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