Hi everyone,
So in Excel 2010, I have a DATEDIF formula that works perfectly, which is:
=IF((AND(Y:Y<>"",B:B<>"")),DATEDIF([@[Date of inclusion]],[@[Date of discharge]],"d")/7,""),IF((AND(B:B<>"",Y:Y=""))
B shows the first date (date of inclusion)
Y shows the second date (date of discharge)...