number of days by year

SvenB

New Member
Joined
Dec 21, 2016
Messages
28
Hello guys. I am currently facing an issue related to how to allocate the difference between some dates into specific years.
Let's assume the period below.
start_dateend_date
03-03-20155-06-2017

<tbody>
</tbody>

Given this period, I would like to compute the days corresponding to each year: 2015, 2016 and 2017.

201520162017

<tbody>
</tbody>

It is possible to achieve this by not doing a nested if?

Thank you.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hello guys. I am currently facing an issue related to how to allocate the difference between some dates into specific years.
Let's assume the period below.
start_dateend_date
03-03-20155-06-2017

<tbody>
</tbody>

Given this period, I would like to compute the days corresponding to each year: 2015, 2016 and 2017.

201520162017

<tbody>
</tbody>

It is possible to achieve this by not doing a nested if?

Thank you.

Not sure what exactly you're asking, are you trying to count the days from 03-03-2015 to 05-06-2017?
 
Upvote 0
A​
B​
C​
D​
E​
F​
G​
H​
1​
Start​
End​
2014​
2015​
2016​
2017​
2018​
2​
2015-0303​
2017-0506​
0​
304​
366​
125​
0​
C2: =MAX(0, MIN($B2, DATE(C$1, 12, 32)) - MAX($A2, DATE(C$1, 1, 1)))
 
Upvote 0

Forum statistics

Threads
1,216,731
Messages
6,132,391
Members
449,725
Latest member
Enero1

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