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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi there

Maybe try the below... If you do not have your data in a table format you cun just update the references in formula with those of the cell ranges which contain your data...

Book1
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(Table1[REVENUE]),Table1[REVENUE],0))
 
Upvote 0
what version of excel do you have ?

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Im sorry, I made the example spreadsheet to upload as an example but had trouble with XL2BB so copied the image so you could at least see what I meant.
 
Upvote 0
but still dont know the version of excel -
 
Upvote 0
Hi there

Maybe try the below... If you do not have your data in a table format you cun just update the references in formula with those of the cell ranges which contain your data...

Book1
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(Table1[REVENUE]),Table1[REVENUE],0))

Thanks a lot for this, but In your example I think you showed me how to find which client simply has the cell with the highest revenue whereas I want to see which client earned the most, irrespective of the product (eventually split by date :) if you might know how to do that as well )

Ive added a link to my working example file here: Loading Google Sheets

thanks a lot!
 
Upvote 0
I did it on Excel for Windows... Not sure about for Mac...
 
Upvote 0
yes, most will be the same with mac version . some things are not quite the same still -
BUT you have 365 version and so a lot of the latest functions filter etc
 
Upvote 0

Forum statistics

Threads
1,216,124
Messages
6,128,997
Members
449,480
Latest member
yesitisasport

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