Momentman
Well-known Member
- Joined
- Jan 11, 2012
- Messages
- 4,153
- Office Version
- 365
- Platform
- Windows
- MacOS
For example I have start and end dates that are not necessarily in the current year but I want to calculate how many days within each month in 2016 fall within the period. Can I get a formula that works.
the table should help clarify any questions
e.g
<tbody>
</tbody><colgroup><col><col><col span="7"><col><col span="4"></colgroup>
The first example runs from a previous year till mid dec-2016...all the days are captured except for dec 2016 that isn't a full month
For the second row, it starts in Aug-2016, so no days clocked till 24th of August and just 7 days in august and the others spread as expected.
Thanks for nay help I can receive
the table should help clarify any questions
e.g
Start Date | End Date | Jan-16 | Feb-16 | Mar-16 | Apr-16 | May-16 | Jun-16 | Jul-16 | Aug-16 | Sep-16 | Oct-16 | Nov-16 | Dec-16 |
24-Jan-15 | 15-Dec-16 | 31 | 29 | 31 | 30 | 31 | 30 | 31 | 31 | 30 | 31 | 30 | 14 |
24-Aug-16 | 18-Dec-16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 30 | 31 | 30 | 17 |
11-Jan-16 | 31-Aug-17 | 10 | 29 | 31 | 30 | 31 | 30 | 31 | 31 | 30 | 31 | 30 | 31 |
<tbody>
</tbody><colgroup><col><col><col span="7"><col><col span="4"></colgroup>
The first example runs from a previous year till mid dec-2016...all the days are captured except for dec 2016 that isn't a full month
For the second row, it starts in Aug-2016, so no days clocked till 24th of August and just 7 days in august and the others spread as expected.
Thanks for nay help I can receive