|The DATEDIF function is an undocumented function in Excel. The only version where it was included in the Help files was Excel 2000. It is not even included in the later version's function lists, but it still works in all versions.|
You can find a great write-up on it here:
This should get you what you are looking for:
Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.