I was given someone else's worksheet (who no longer works here) to update for the coming 2013 year. The purpose of the formula in question is to automatically calculate FTE based on start and end date for each month. When I changed the date ranges from 1/1/2012 to 1/1/2013; and end date 12/31/2012 to 12/31/2013, the formula returns the equivelent of 0 instead of 1. If I leave the start range blank, it will calculate 1.
Here is the formula for January:
=IF($J3<=DATE(YEAR(M$1),MONTH(M$1),1),IF($K3>=M$1,1,IF($K3<DATE(YEAR(M$1),MONTH(M$1),1),0,NETWORKDAYS(DATE(YEAR(M$1),MONTH(M$1),1),$K3)/NETWORKDAYS(DATE(YEAR(M$1),MONTH(M$1),1),DATE(YEAR(M$1),MONTH(N$1),0)))),IF($J3<=M$1,NETWORKDAYS($J3,M$1)/NETWORKDAYS(DATE(YEAR(M$1),MONTH(M$1),1),DATE(YEAR(N$1),MONTH(N$1),0)),0))
Any help would be much appreciated.
Thanks,
Maggie
Bookmarks