Hi all! I'm basically at a breaking point. I am trying to rank a file with sales by customer but the sales are broken out by a sub segment. I need to rank them at the total customer level. Below is a makeshift example of how my data looks (the rank column is the result I want):
[TABLE="width: 265"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Sales[/TD]
[TD="align: center"]Total Sales[/TD]
[TD="align: center"]Rank[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]84[/TD]
[TD="align: center"]803[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]D[/TD]
[TD="align: center"]635[/TD]
[TD="align: center"]648[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]645[/TD]
[TD="align: center"]803[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]89[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]74[/TD]
[TD="align: center"]803[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]D[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]648[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]68[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
</tbody>[/TABLE]
What I'm looking for is to combine the total sales which I got with sumproduct (or sumif) and the rank into one formula.
Thanks much in advance!
[TABLE="width: 265"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Sales[/TD]
[TD="align: center"]Total Sales[/TD]
[TD="align: center"]Rank[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]84[/TD]
[TD="align: center"]803[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]D[/TD]
[TD="align: center"]635[/TD]
[TD="align: center"]648[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]645[/TD]
[TD="align: center"]803[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]89[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]74[/TD]
[TD="align: center"]803[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]D[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]648[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]68[/TD]
[TD="align: center"]227[/TD]
[TD="align: center"]3[/TD]
[/TR]
</tbody>[/TABLE]
What I'm looking for is to combine the total sales which I got with sumproduct (or sumif) and the rank into one formula.
Thanks much in advance!