Sum horizontal cells with calculation

victoria86

New Member
Joined
Jun 30, 2017
Messages
4
[TABLE="width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Dec[/TD]
[TD]Jan[/TD]
[TD]Jan[/TD]
[TD]Jan[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[/TR]
[TR]
[TD]Current Month[/TD]
[TD]14%[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[TD]57%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Next Month[/TD]
[TD]86%[/TD]
[TD]0%[/TD]
[TD]0%[/TD]
[TD]0%[/TD]
[TD]43%[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]Week Commencing[/TD]
[TD]31/12/2017[/TD]
[TD]07/01/2018[/TD]
[TD]14/01/2018[/TD]
[TD]21/01/2018[/TD]
[TD]28/01/2018[/TD]
[TD]04/02/2018[/TD]
[/TR]
[TR]
[TD]Volume[/TD]
[TD]100[/TD]
[TD]200[/TD]
[TD]300[/TD]
[TD]400[/TD]
[TD]500[/TD]
[TD]600[/TD]
[/TR]
</tbody>[/TABLE]

Hi there

In the table above I would like to convert volume data by week into month. The first 3 rows are (hidden) formulae, the fourth row is fixed and the fifth is the input (both visible). So in another cell somewhere else in the sheet, I want the result to be 1271 for Jan i.e. (100*86%)+(200*100%)+(300*100%)+(400*100%)+(500*57%). I can only think of a way to do this by using extra calculation cells but wondered if there was a direct way?

Your help is much appreciated!

Thanks
Victoria
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
A couple of SUMPRODUCTs should see you through:


Book1
ABCDEFG
1MonthDecJanJanJanJanFeb
2Current Month14%100%100%100%57%100%
3Next Month86%0%0%0%43%0%
4Week Commencing31/12/201707/01/201814/01/201821/01/201828/01/201804/02/2018
5Volume100200300400500600
6
7Month1
8Result1271
Sheet2
Cell Formulas
RangeFormula
B8=SUMPRODUCT($B5:$G5,$B3:$G3,--($B1:$G1=TEXT(EOMONTH(DATE(2017,$B$7,1),-1),"mmm")))+SUMPRODUCT($B5:$G5,$B2:$G2,--($B1:$G1=TEXT(DATE(2017,$B$7,1),"mmm")))


WBD
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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