Showing the data with the largest amount based on three criteria

crazytimechris

New Member
Joined
Sep 5, 2015
Messages
10
Hello,

I have three colums of information. Customer, Product, and revenue, I would like to show which customer has generated the most revenue on each product and overall which customer has generated the most revenue.
I know how to sumifs and show based on the customer the information I want, but I want to be shown the customer. I have attached an example and hope it helps.

Thanks a lot in advance

1679647654616.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Maybe the below will work... I made a pivot table to couble check and it returns the customer with the highest amount of revenue...

Book1.xlsx
ABCDEFG
1DATECLIENTPRODUCTREVENUEDate:23/03/2023
223/03/2023Client 2Product 1167333
323/03/2023Client 3Product 1171130Customer with most revenueClient 3
423/03/2023Client 4Product 1124667
523/03/2023Client 5Product 1191862
623/03/2023Client 6Product 184156
723/03/2023Client 7Product 1108104
823/03/2023Client 8Product 1146960
923/03/2023Client 9Product 2133897
1023/03/2023Client 10Product 1172430
1123/03/2023Client 1Product 2108582
1223/03/2023Client 2Product 243558
1323/03/2023Client 3Product 260780
1423/03/2023Client 4Product 291543
1523/03/2023Client 5Product 2158497
1623/03/2023Client 6Product 217886
1723/03/2023Client 7Product 2154576
1823/03/2023Client 8Product 256951
1923/03/2023Client 9Product 287921
2023/03/2023Client 10Product 252230
2123/03/2023Client 1Product 3176221
2223/03/2023Client 2Product 347052
2323/03/2023Client 3Product 3192593
2423/03/2023Client 4Product 3182595
2523/03/2023Client 5Product 320634
2623/03/2023Client 6Product 3176409
2723/03/2023Client 7Product 3114572
2823/03/2023Client 8Product 3122348
2923/03/2023Client 9Product 370081
3023/03/2023Client 10Product 359691
Sheet1
Cell Formulas
RangeFormula
G3G3=INDEX(Table1[CLIENT],MATCH(MAX(SUMIF(Table1[CLIENT],Table1[CLIENT],Table1[REVENUE])),SUMIF(Table1[CLIENT],Table1[CLIENT],Table1[REVENUE]),0))


Book1.xlsx
KL
6Row LabelsSum of REVENUE
723/03/20233295259
8Client 3424503
9Client 4398805
10Client 7377252
11Client 5370993
12Client 8326259
13Client 9291899
14Client 1284803
15Client 10284351
16Client 6278451
17Client 2257943
18Grand Total3295259
Sheet1
 
Upvote 0
@crazytimechris
I suggest that you update your Account details (or click your user name at the top right of the forum) to show that you are using 2021 & a Mac, 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
Excel Formula:
=LET(u,UNIQUE(FILTER(C5:C100,C5:C100<>"")),INDEX(SORTBY(u,SUMIFS(E:E,C:C,u),-1),1))
 
Upvote 0

Forum statistics

Threads
1,215,640
Messages
6,125,972
Members
449,276
Latest member
surendra75

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