Formula help

Status
Not open for further replies.

Emmily

Well-known Member
Joined
Oct 5, 2008
Messages
676
Hi I am after a formula, that will provide a sum for each month based on the data in Col A1:D


DateUKNFXTEMP
1-Nov-12346100 Nov-12Dec-12
2-Nov-12151550 Total2318
5-Nov-12184170
6-Nov-12131180
7-Nov-12623340
8-Nov-12151420
9-Nov-12182130
12-Nov-12154130
13-Nov-1273130
14-Nov-1265430

<COLGROUP><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 48pt" span=7 width=64><TBODY>
</TBODY>

 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try
G3=SUMPRODUCT((MONTH($A$2:$A$11)=11)*(YEAR($A$2:$A$11)=2012),($B$2:$B$11)+($C$2:$C$11)+($D$2:$D$11))


H3=SUMPRODUCT((MONTH($A$2:$A$11)=12)*(YEAR($A$2:$A$11)=2012),($B$2:$B$11)+($C$2:$C$11)+($D$2:$D$11))

Obviously the formula is from A2 not A1 because of the title row and I would have used SUMIFS but would have needed to use specific dates which could become a cumbersome formula if you have too many months but would be more efficient.
 
Last edited:
Upvote 0
Yup I'm locking this one down because it is a dupe. Please stick with your original. Thanks.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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