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>
 
Really appreciate it.

It seems another hurdle has arisen...

I need to divide this formula by 0.5 then again by 12 in the formula itself so i assumed this would work, but it doesn't.

=SUMIF($C$2:$C$8,H2,$D$2:$D$8)+SUMIF($E$2:$E$8,H2,$F$2:$F$8)/0.5,/12)
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Maybe
=(SUMIF($C$2:$C$8,H2,$D$2:$D$8)+SUMIF($E$2:$E$8,H2,$F$2:$F$8))/0.5/12
 
Upvote 0
Why not divide by 6? Excel uses BIDMAS for operator order in equations. Your first attempt only applies the scalling factor to the second sumif, not both sumif parts.
 
Upvote 0
Hi jack,

I literally just realized this :LOL:

The real formula is as follows

=SUMIF('[Production Plan.xlsx]Production Plan draft'!$C$8:$C$12,B138,'[Production Plan.xlsx]Production Plan draft'!$D$8:$D$12)/6+SUMIF('[Production Plan.xlsx]Production Plan draft'!$J$8:$J$12,B138,'[Production Plan.xlsx]Production Plan draft'!$K$8:$K$12)/6

This IS WORKING however I can't click and drag to the right and it work for other cells...

Is there a way to have $C$8:$C$12 and $D$8:$D$12 jump to $C$14:$C$18 and $D$14:$D$18, and have $J$8:$J$12 and $K$8:$K$12 to jump to $J$14:$J$18 and $K$14:$K$18 and have them all continue on that pattern for as long as i need it to? Taking the $'s out before the numbers only has the formula change from $C8 to $C9 as you would expect.
 
Upvote 0
Whilst that's beyond my knowledge of formulae, are you dragging to the right, or dragging the formula down?
If dragging to the right I would expect the row numbers to remain the same.
 
Upvote 0
Not sure about "jump" but you could add to the formula something that tests the row number via IF and applies the above formula if TRUE?

Easier: Create a helper column and use 1 and 0 to mark rows to include/skip, then filter this column and copy and paste source to visible ranges as required.
 
Upvote 0

Forum statistics

Threads
1,214,815
Messages
6,121,715
Members
449,049
Latest member
THMarana

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