I am suppose to calculate the days between 2 dates. However, leap yr would be 366 days but i have to formulate it so that no matter whether its leap yr or not, no. of days would be 365. So I would need to exclude 29 feb from every leap yr.
I've tried using the formula I found in another forum:
=SUMPRODUCT(--(TEXT(ROW(INDIRECT(F4+1&":"&F5)),"dd-mmm")<>"29-feb"))
but when I input 01/01/2007 and 31/12/2007, the no. of days reflected was 364 days.
and when I input 01/01/2008 and 31/12/2008, the no. of days reflected was 364 days too. I have no idea what went wrong.
Anyone have any advise for me? Or any formula to recommend???
Need lots of help for Excel!!! Thanks in advance!
Bookmarks