Forum Discussion

ksrini's avatar
ksrini
Icon for Helper I rankHelper I
5 years ago
Solved

Sorting and Ranking in a Matrix table

Hi All,

 

I need to create a summary table on product sales by countries and sort products by their sales in descending order. Products are in columns and regions are in rows. I also need to color top 2, 3-5 and 6-8 countries in each product. The below table is only a sample and i have much bigger table. From the below table, i am trying to get to sorting stage in which Product 3 should be the left most in the table and Product 7 has to be the last one. 

 

Regarding coloring the cells in the Product 1 column, cells with 9 and 7 should be colored green because they are top 2 and 5 and 4 should be lighter green and the next 2 ranked ones should be more lighter green. I tried few ways to sort like sorting by other column etc but i am not able to solve it. Can any guide me on this ?  

 

CountryProduct 1Product 2Product 3Product 4Product 5Product 6Product 7Product 8
USA59628 83
India 357 2  
China35   7 4
Japan7 638 8 
Germany 355    
England 5 646 5
France4 2     
Italy 159   7
Spain35   7  
Australia9 738 38
Total Sales3131363528221927

  Thanks

Srini