rogerfoster88
New Member
- Joined
- May 17, 2019
- Messages
- 18
[TABLE="width: 984"]
<tbody>[TR]
[TD="colspan: 13"]I am looking for a formula to go into G2 that finds the combined sum in column D that is adjacent to the product in column C, but for the choice of product to be dictated by the product name in F2. So the formula needs to be clever enough to change the volume if the name in F2 changes.[/TD]
[/TR]
[TR]
[TD="colspan: 6"]Description[/TD]
[TD][/TD]
[TD="colspan: 6"]Example 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD][/TD]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD]Product name here[/TD]
[TD]Formula here[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[TD][/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 6"]Example 2[/TD]
[TD][/TD]
[TD="colspan: 6"]Example 3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD][/TD]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[TD][/TD]
[TD]Bbb[/TD]
[TD]18000[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[TD][/TD]
[TD]Ccc[/TD]
[TD]14000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 13"]I have used =Vlookup(F2,C1:G7,2,FALSE) and several iterations of it but I feel like vlookup isn't the answer for my question.[/TD]
[/TR]
[TR]
[TD="colspan: 13"]Thanks in advanced for looking into this.[/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD="colspan: 13"]I am looking for a formula to go into G2 that finds the combined sum in column D that is adjacent to the product in column C, but for the choice of product to be dictated by the product name in F2. So the formula needs to be clever enough to change the volume if the name in F2 changes.[/TD]
[/TR]
[TR]
[TD="colspan: 6"]Description[/TD]
[TD][/TD]
[TD="colspan: 6"]Example 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD][/TD]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD]Product name here[/TD]
[TD]Formula here[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[TD][/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 6"]Example 2[/TD]
[TD][/TD]
[TD="colspan: 6"]Example 3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD][/TD]
[TD][/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]Product[/TD]
[TD]Volume[/TD]
[TD][/TD]
[TD]Product[/TD]
[TD]Total Volume[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[TD][/TD]
[TD]Bbb[/TD]
[TD]18000[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]Aaa[/TD]
[TD]7000[/TD]
[TD][/TD]
[TD]Ccc[/TD]
[TD]14000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]4[/TD]
[TD]Bbb[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]Ccc[/TD]
[TD]9000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6[/TD]
[TD]Ccc[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 13"]I have used =Vlookup(F2,C1:G7,2,FALSE) and several iterations of it but I feel like vlookup isn't the answer for my question.[/TD]
[/TR]
[TR]
[TD="colspan: 13"]Thanks in advanced for looking into this.[/TD]
[/TR]
</tbody>[/TABLE]