Horizontal Sum

lichfieldluke

New Member
Joined
Sep 24, 2012
Messages
1
Need to do horizontal sum, (see example data block)

[TABLE="width: 512"]
<colgroup><col width="64" span="8" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl25"]Month1[/TD]
[TD="class: xl25"]Month1[/TD]
[TD="class: xl25"]Month1[/TD]
[TD="class: xl25"]Month1[/TD]
[TD="class: xl25"]Month2[/TD]
[TD="class: xl25"]Month2[/TD]
[TD="class: xl25"]Month2[/TD]
[TD="class: xl25"]Month2[/TD]
[/TR]
[TR]
[TD="class: xl25"]Week 1[/TD]
[TD="class: xl25"]Week 2[/TD]
[TD="class: xl25"]Week 3[/TD]
[TD="class: xl25"]Week 4[/TD]
[TD="class: xl25"]Week 1[/TD]
[TD="class: xl25"]Week 2[/TD]
[TD="class: xl25"]Week 3[/TD]
[TD="class: xl25"]Week 4[/TD]
[/TR]
[TR]
[TD="class: xl24"]2[/TD]
[TD="class: xl24"]2[/TD]
[TD="class: xl24"]2[/TD]
[TD="class: xl24"]2[/TD]
[TD="class: xl24"]5[/TD]
[TD="class: xl24"]5[/TD]
[TD="class: xl24"]5[/TD]
[TD="class: xl24"]5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/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]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/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]
[/TR]
[TR]
[TD="class: xl23"]Month 1[/TD]
[TD="class: xl22"] ? = 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl23"]Month 2[/TD]
[TD="class: xl22"] ? = 20
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/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]
[/TR]
</tbody>[/TABLE]
What formula do I use to populate the values of Month 1 and Month 2?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
=sumif(A2:H2),"Month1",A3:H3)

if Month 1 is in the same format, then you could do

=sumif($A$2,$H$2,A5,$A$3:$H$3) and copy down
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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