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
 
try this


Excel 2012
ABCDEF
1Financial Year
2Activation dateExpiry dateTotal No Of Days2015-162016-172017-18
301-Apr-1530-Apr-15303000
421-Mar-1609-Apr-16201190
501-Mar-1620-Mar-1875031365354
Sheet1
Cell Formulas
RangeFormula
D3=IF($A3<=DATE(LEFT(D$2,4)+1,3,31),MAX(MIN(DATE(LEFT(D$2,4)+1,3,31)-$A3,$B3-DATE(LEFT(D$2,4),4,1),DATE(LEFT(D$2,4)+1,3,31)-DATE(LEFT(D$2,4),4,1))+1,0),0)
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,223,248
Messages
6,171,011
Members
452,374
Latest member
keccles

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