I have an excel file with 4 Column, need to populate a separte excel sheet with Top 10 customer from column a who have top 10 values in colum b

makvisions

New Member
Joined
Nov 18, 2014
Messages
40
Hello,

I have an excel file with approx. 800 customers in column a, column b is the month it represent, column c is monthly expense
now I want to populate a separate sheet with Top 10 customers in column a and corresponding expense in column b

Below is the sample data, help is appreciated.





Sr. #Customer Expense Total
1Customer 1$48
2Customer 2$5,250
3Customer 3$1,732
4Customer 4$36,157
5Customer 5$12,479
6Customer 6$4,828
7Customer 7$899
8Customer 8$11,718
9Customer 9$857
10Customer 10$26,749
795Customer 795$16,962

<tbody>
</tbody><colgroup><col><col><col></colgroup>
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Assuming that there are no duplicate expenses, try this:


Excel 2010
ABC
1CustomerMonthExpense Total
2Customer 1$48
3Customer 2$5,250
4Customer 3$1,732
5Customer 4$36,157
6Customer 5$12,479
7Customer 6$4,828
8Customer 7$899
9Customer 8$11,718
10Customer 9$857
11Customer 10$26,749
12Customer 795$16,962
Sheet1


Excel 2010
AB
1CustomerExpense Total
2Customer 4$36,157
3Customer 10$26,749
4Customer 795$16,962
5Customer 5$12,479
6Customer 8$11,718
7Customer 2$5,250
8Customer 6$4,828
9Customer 3$1,732
10Customer 7$899
11Customer 9$857
Sheet2
Cell Formulas
RangeFormula
A2=INDEX(Sheet1!A:A,MATCH(B2,Sheet1!C:C,0))
B2=LARGE(Sheet1!$C$2:$C$12,ROWS($A$1:$A1))
 
Upvote 0
If duplicate expense amounts are possible, use this in A2

=INDEX(Sheet1!A$2:A$12,SMALL(IF(Sheet1!C$2:C$12=B2,ROW(Sheet1!C$2:C$12)-(ROW(Sheet1!C$2)-1)),COUNTIF(B$2:B2,B2))) Ctrl Shift Enter
 
Upvote 0
the problem is solved, however when I try to apply to my situation I think i need to expand this formula,

my source is a pivot table which month, division, customer and monthly expense for aprox. 800 customers,

now I want to populate separate tab for each division with top 10 customer, basically every month i move one column further to populate that month data

here is sample data

Month
Divison
Customer
Total
1/1/2017
A
Customer 1​
$1,069​
2/1/2017
B
Customer 2​
$277​
3/1/2017
C
Customer 3​
$644​
4/1/2017
D
Customer 4​
$490​
5/1/2017
E
Customer 5​
$13,077​
1/1/2017
A
Customer 1​
$2,062​
2/1/2017
B
Customer 2​
$324​
3/1/2017
C
Customer 3​
$123​
4/1/2017
D
Customer 4​
$2,807​
5/1/2017
E
Customer 5​
$1,031​

<tbody> </tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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