Problem summing several variables quantities over inconsistent week lengths

tunabeast

New Member
Joined
Aug 26, 2011
Messages
1
Hi all,

Here is my problem:

Column A contains a week number, for example '23' let's call it 'Week'.

Column B contains one of the 3 types of product that is manufactured, let's call it 'Product'.

Column C contains quantities of each types of manufactured product, let's call it 'Quantity'.

Column D i have created as a 'Weekly cutoff point' which displays a '1' when weeks change, i.e. 23 to 24.

There are then 3 other columns, 1 for each different type of product. The formula in these columns will look up 'Product' and if it matches that particular type then it will display 'Quantity' from column B.

What I am aiming to achieve is a sum of the quantities of each product manufactured for each week. This however is made difficult by the fact that the number of orders for each week varies, therefore the number of rows in each week is different - and i cannot see how i would use a formula to automatically calculate totals for each week.

Is this possible using a normal formula, or would some VB code be required? I am unfamiliar with VB also, could anyone steer me in the right direction?

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
You can use the "Sumif" function.
Lets say you have three products A, B and C.

sum of quantity of product A would be given by

=sumif(B:B,"=A",C:C)

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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