Calendar calculation

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hi, I have column A = all 2015 calendar,
from columns E to Y are the number of students in each place each day.
Column AB is the total of students each month on each place to calculate the total gain.
I set the formula =SUM(E3:E33) to give me the total number of students of Place 1 in January, but to copy and past for all months/years does not past in the correct dates, so my question: Is there a way to make the calculations for month I mean from 1st to 31st of January, then from 1st to 28th of February and so on?
Thanks in advance. :)
2zfr2us.jpg
[/IMG]
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try the following array formula in AB4, confirm with Ctrl+Shift+Enter, not just Enter:
Code:
=SUM(IF(MONTH($A$3:$A$368)=MONTH($A4),IF($E$1:$X$1=$N4,$E$3:$X$368)))
 
Upvote 0
Hi

Try :-
Manoloc
ABCDEFGHIAAAB
21 Place2 Place3 PlaceStudents
301-Jan-1511 Place45
402-Jan-152 Place33
503-Jan-1533 Place37
604-Jan-15
705-Jan-1524
806-Jan-15
907-Jan-154
1008-Jan-15
1109-Jan-15
1210-Jan-1538
1311-Jan-15
1412-Jan-155
1513-Jan-15
1614-Jan-15
1715-Jan-157
1816-Jan-154
2220-Jan-1555
2321-Jan-15
2422-Jan-156
2523-Jan-15
2624-Jan-156
2826-Jan-1573
2927-Jan-157
3028-Jan-158
3331-Jan-159810Students
3401-Feb-151471 Place6
3502-Feb-152582 Place15
3603-Feb-153693 Place24

<thead>
</thead><tbody>
</tbody>
Excel 2007

Worksheet Formulas
CellFormula
AB3=SUMPRODUCT(--(MONTH($A$3:$A$370)=MONTH($A3)),--(OFFSET($D$3:$D$370,,DAY($A3))))
AB4=SUMPRODUCT(--(MONTH($A$3:$A$370)=MONTH($A4)),--(OFFSET($D$3:$D$370,,DAY($A4))))
AB5=SUMPRODUCT(--(MONTH($A$3:$A$370)=MONTH($A5)),--(OFFSET($D$3:$D$370,,DAY($A5))))
AB34=SUMPRODUCT(--(MONTH($A$3:$A$370)=MONTH($A34)),--(OFFSET($D$3:$D$370,,DAY($A34))))
AB35=SUMPRODUCT(--(MONTH($A$3:$A$370)=MONTH($A35)),--(OFFSET($D$3:$D$370,,DAY($A35))))
AB36=SUMPRODUCT(--(MONTH($A$3:$A$370)=MONTH($A36)),--(OFFSET($D$3:$D$370,,DAY($A36))))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Note the suggestion that you align the totals grid with the start day of each month. That way there is one formula for all your "place" totals.

hth
 
Upvote 0

Forum statistics

Threads
1,215,941
Messages
6,127,785
Members
449,407
Latest member
KLL_VA

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