Calculate days between 2 dates

Angelic1

New Member
Joined
Oct 14, 2016
Messages
7
I would like to calculate number of days between 2 dates which consists of 3 or 4 years together.... I would like to know days between each financial year eg. 1-March-16 to 5-April-17


financial year -------------days
April 2015- March 2016--- 31 days
Apr 16 to mar 17-----------365 days
Apr 17 to mar 18--------- 5 days


please help me with the nested if date formula.... I m finding it difficult to crack..


thank you
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
[FONT=&quot]Thank you for replying, but this does not solve my purpose. I wanted to use IF & date function together in three different columns as below[/FONT]

[FONT=&quot]Activation date -21-Mar-2016 [/FONT]
[FONT=&quot]Expiration date - 9-Apr-2016[/FONT]
[FONT=&quot]total No Of Days - 20[/FONT]

[FONT=&quot]f.y.2015-16 - 11[/FONT]
[FONT=&quot]f.y.2016-17 - 9[/FONT]
[FONT=&quot]f.y.2017-18 - 0[/FONT]
 
Upvote 0
[TABLE="width: 596"]
<colgroup><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD="colspan: 5"]


[/TD]
[TD="colspan: 5"] Financial Year [/TD]
[/TR]
[TR]
[TD]Activation date[/TD]
[TD] [/TD]
[TD]Expiry date [/TD]
[TD] [/TD]
[TD]Total No Of Days [/TD]
[TD]2015-16[/TD]
[TD] [/TD]
[TD]f.y.2016-17[/TD]
[TD] [/TD]
[TD]f.y.2017-18[/TD]
[/TR]
[TR]
[TD]1-Apr-2015[/TD]
[TD] [/TD]
[TD]30-Apr-2015[/TD]
[TD] [/TD]
[TD] 30[/TD]
[TD]30 [/TD]
[TD] [/TD]
[TD]0 [/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]21-Mar-2016[/TD]
[TD] [/TD]
[TD]9-Apr-2016[/TD]
[TD] [/TD]
[TD] 20[/TD]
[TD]11[/TD]
[TD] [/TD]
[TD]9[/TD]
[TD] [/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1-Mar-2016[/TD]
[TD] [/TD]
[TD]20-Mar-2018[/TD]
[TD] [/TD]
[TD] 750[/TD]
[TD]31[/TD]
[TD] [/TD]
[TD]365[/TD]
[TD] [/TD]
[TD]354[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Also, I'll like to add that i tried using the below formula for column 'Financial year 01-Apr-2015 to 31-Mar-2016', BUT I am not able to deal with rest 2 columns.

=IF(A1>DATE(2016,3,31),0,IF(B1< DATE(2016,4,1),C1,DATE(2016,3,31)-A1+1))
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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