Hi ,
Just for the record :
The DATEDIF function gives a #NUM! error result if the first date parameter is greater than the second date parameter ; the first parameter is the START DATE , and the second parameter is the END DATE ; the START DATE is expected to be less than or prior to the END DATE.
The DATEDIF function also gives a #NUM! error result if the third parameter is an invalid format string. Thus , "d" or "D" is for days , "m" or "M" is for months , and "y" or "Y" is for years ; anything else is invalid and will result in the error value #NUM! being output.
The DATEDIF function gives a #VALUE! error result if either or both of the two date parameters are not valid dates that Excel can recognize ; Excel treats invalid dates (dates in the wrong format) as text strings , and if either or both of the first two parameters are text , the error result #VALUE! will be output.
Narayan