Find days between two dates

adiles

New Member
Joined
Jun 13, 2020
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Dear All,

I am looking for a simple formula, which will display the number of days in a year. Kindly help me.

NameDOJEOS
2013​
2014​
2015​
Employee 1
01-01-13​
08-08-15​
364​
364​
220​
Employee 2
05-04-14​
31-05-16​
270​
364​
Employee 3
15-02-14​
16-04-15​
319​
106​
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Your expected answers are inconsistent, so this is what I think you want.

If it is not what you want then you will need to explain how you got your expected results.
Book1
ABCDEF
1NameDOJEOS201320142015
2Employee 101/01/201308/08/2015365365220
3Employee 205/04/201431/05/2016 271365
4Employee 315/02/201416/04/2015 320106
Sheet1
Cell Formulas
RangeFormula
D2:F4D2=IFERROR(1/(1/MAX(0,MIN($C2,DATE(D$1,12,31))-MAX($B2,DATE(D$1,1,1))+1)),"")
 
Upvote 0
Solution
Your expected answers are inconsistent, so this is what I think you want.

If it is not what you want then you will need to explain how you got your expected results.
Book1
ABCDEF
1NameDOJEOS201320142015
2Employee 101/01/201308/08/2015365365220
3Employee 205/04/201431/05/2016 271365
4Employee 315/02/201416/04/2015 320106
Sheet1
Cell Formulas
RangeFormula
D2:F4D2=IFERROR(1/(1/MAX(0,MIN($C2,DATE(D$1,12,31))-MAX($B2,DATE(D$1,1,1))+1)),"")
Thanks Brother, I really appreciate your effort. :)
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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