Help with a formula in Excel

rogerfoster88

New Member
Joined
May 17, 2019
Messages
18
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.
DescriptionExample 1
Column CColumn DColumn EColumn FColumn GColumn CColumn DColumn EColumn FColumn G
1ProductVolumeProductTotal Volume1ProductVolumeProductTotal Volume
2Aaa9000Product name hereFormula here2Aaa7000Aaa7000
3Bbb90003Bbb9000
4Bbb90004Bbb9000
5Ccc90005Ccc9000
6Ccc50006Ccc5000
Example 2Example 3
Column CColumn DColumn EColumn FColumn GColumn CColumn DColumn EColumn FColumn G
1ProductVolumeProductTotal Volume1ProductVolumeProductTotal Volume
2Aaa7000Bbb180002Aaa7000Ccc14000
3Bbb90003Bbb9000
4Bbb90004Bbb9000
5Ccc90005Ccc9000
6Ccc50006Ccc5000
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.
Thanks in advanced for looking into this.

<tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How about


Excel 2013/2016
CDEFG
1ProductVolumeProductTotal Volume
2Aaa9000Bbb18000
3Bbb9000
4Bbb9000
5Ccc9000
6Ccc5000
Booking Data
Cell Formulas
RangeFormula
G2=SUMIF(C:C,F2,D:D)
 
Upvote 0
Oh man that worked thank you so much!

It's made me wonder if you could apply this to a 4 column rule instead of 2?

Column CColumn DColumn EColumn FColumn GColumn HColumn I
1ProductVolumeProductVolume ProductTotal Volume
2Aaa9000Aaa9000 Product name hereformula here
3Bbb9000Bbb9000
4Bbb9000EMPTY
CELL

EMPTY
CELL

5Ccc9000Ccc1
6Ccc5000Ccc5000

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Add 2 sumif together like


Excel 2013/2016
CDEFGHI
1ProductVolumeProductVolumeProductTotal Volume
2Aaa9000Aaa9000Ccc19001
3Bbb9000Bbb9000
4Bbb9000
5Ccc9000Ccc1
6Ccc5000Ccc5000
Booking Data
Cell Formulas
RangeFormula
I2=SUMIF(C:C,H2,D:D)+SUMIF(E:E,H2,F:F)
 
Upvote 0
Hi Fluff,

Thanks for your help on this, however i have come across an issue with it.

Excel 2013/2016
CDEFGHI
1ProductVolumeProductVolumeProductTotal Volume
2Aaa9000Aaa9000Ccc19001
3Bbb9000Bbb9000
4Bbb9000
5Ccc9000Ccc1
6Ccc5000Ccc5000

<colgroup><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

What i forgot to mention was that C2:C6 and E2:E6 are Data Validation drop-down lists and for some reason the formula inst liking it, as when i manually type in the data for the product names the formula works.
 
Upvote 0
So what the issue seems to be is that even though i need =SUMIF(C:C,F2,D:D) i need it to only go from row 2 to 8 rather than reading the whole worksheet.
 
Upvote 0
Based on @Fluff's suggestion try:
Rich (BB code):
=SUMIF($C$2:$C$8,H2,$D$2:$D$8)+SUMIF($E$2:$E$8,H2,$F$2:$F$8)


 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,210
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top