Forum Discussion
frontdesksm
Jul 31, 2019Copper Contributor
Understanding Datedif regarding days
Look at column C. The days are all 30 days. Why are they all the same? I agree with year and month but I can not figure out days. Another example is Today is July 31, 2019 substract from May 4, ...
- Jul 31, 2019
Hi
I created a video tutorial about the DateDiff Function in Excel
You can watch it here
https://www.youtube.com/watch?v=9c3DgoTzTU8
Hope that Helps
Nabil Mourad
frontdesksm
Aug 02, 2019Copper Contributor
=DATEDIF(C8,TODAY(),"y")&" years, "
&DATEDIF(C8,TODAY(),"ym")&" months, "
&DATEDIF(C8,TODAY(),"md")&" days"
If the cell is empty what would I add to the formula to not calculate?
Thank you for all your great information.
tauqeeracma
Aug 02, 2019Iron Contributor
You can use below :
=IF(C8="","",DATEDIF(C8,TODAY(),"y")&" years, "&DATEDIF(C8,TODAY(),"ym")&" months, "&DATEDIF(C8,TODAY(),"md")&" days")
Thanks
Tauqeer