I am working in Excel 365 and have the following problem: Let's say my data is as follows:
Now, for a unique list of salespeople, I'd like to get their best selling product, by sum of Value.
For Bob, this would be Pants. I tried doing SORTBY by sum of Value but it doesn't accept the sum.
I have data from hundreds of salespeople and hundreds of products so it's not practical to do SUMIFS etc. Thank you for any help.
A | B | C | |
1 | Salesperson | Product Sold | Value |
2 | Bob | Shoes | 56 |
3 | Bill | Shoes | 41 |
4 | Jack | Socks | 47 |
5 | Bob | Socks | 34 |
6 | Bob | Pants | 61 |
7 | Jack | Shoes | 68 |
8 | Bill | Pants | 52 |
9 | Jack | Socks | 85 |
10 | Bill | Socks | 64 |
11 | Jack | Socks | 37 |
12 | Bill | Pants | 55 |
13 | Bob | Pants | 13 |
Now, for a unique list of salespeople, I'd like to get their best selling product, by sum of Value.
For Bob, this would be Pants. I tried doing SORTBY by sum of Value but it doesn't accept the sum.
Excel Formula:
=SORTBY(UNIQUE(FILTER(B:B,$A:$A="Bob")),SUM($C:$C),-1)
I have data from hundreds of salespeople and hundreds of products so it's not practical to do SUMIFS etc. Thank you for any help.