MFGdatahound
New Member
- Joined
- Feb 6, 2015
- Messages
- 7
Hello geniuses,
Imagine the table below is longer with more variables. Each color is a company. Number is dollars earned. There are three different businesses: A, B, and C. I'm trying to take the full sum of each company's book of business, but classify them by the more dominant business. So if Yellow made $8, 3$ of that was through business B, but the more profitable was business A. The result would output "A" because it was the stronger business. I have no idea how to do it, and there are too many companies to filter each field.
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Company
[/TD]
[TD="class: xl65, width: 64"]$
[/TD]
[TD="class: xl65, width: 64"]Business
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Yellow[/TD]
[TD="class: xl65, width: 64"]5[/TD]
[TD="class: xl65, width: 64"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Yellow[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Orange[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
[TR]
[TD="class: xl65"]Blue[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
[TR]
[TD="class: xl65"]Blue[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Blue[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Green[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Green[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
</tbody>[/TABLE]
Appreciate any advice,
Thanks.
Imagine the table below is longer with more variables. Each color is a company. Number is dollars earned. There are three different businesses: A, B, and C. I'm trying to take the full sum of each company's book of business, but classify them by the more dominant business. So if Yellow made $8, 3$ of that was through business B, but the more profitable was business A. The result would output "A" because it was the stronger business. I have no idea how to do it, and there are too many companies to filter each field.
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Company
[/TD]
[TD="class: xl65, width: 64"]$
[/TD]
[TD="class: xl65, width: 64"]Business
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Yellow[/TD]
[TD="class: xl65, width: 64"]5[/TD]
[TD="class: xl65, width: 64"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Yellow[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Orange[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
[TR]
[TD="class: xl65"]Blue[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
[TR]
[TD="class: xl65"]Blue[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Blue[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Green[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Green[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]Red[/TD]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
</tbody>[/TABLE]
Appreciate any advice,
Thanks.