G
Guest
I need to create a formula in excel to count a resource if their active
period falls in a set of dates. This is the formula that was passed down to
me but I would like to simplfy it.
=IF(YEAR(F7)=2007,(IF(MONTH(F7)=1,(IF(MONTH(F7)=MONTH(H7),0.5,(IF(D7<>"",(IF(("2/1/2007"-E7)>0,(IF(("2/1/2007"-F7)>30,"",(IF(("2/1/2007"-E7)<16,0.5,(IF(("2/1/2007"-F7)>16,0.5,1)))))),"")),"")))),(IF(F7<>"",(IF(("2/1/2007"-E7)>0,(IF(("2/1/2007"-F7)>30,"",(IF(("2/1/2007"-E7)<16,0.5,(IF(("2/1/2007"-F7)>16,0.5,1)))))),"")),"")))),(IF(D7<>"",(IF(("2/1/2007"-E7)>0,(IF(("2/1/2007"-F7)>30,"",(IF(("2/1/2007"-E7)<16,0.5,(IF(("2/1/2007"-F7)>16,0.5,1)))))),"")),"")))
period falls in a set of dates. This is the formula that was passed down to
me but I would like to simplfy it.
=IF(YEAR(F7)=2007,(IF(MONTH(F7)=1,(IF(MONTH(F7)=MONTH(H7),0.5,(IF(D7<>"",(IF(("2/1/2007"-E7)>0,(IF(("2/1/2007"-F7)>30,"",(IF(("2/1/2007"-E7)<16,0.5,(IF(("2/1/2007"-F7)>16,0.5,1)))))),"")),"")))),(IF(F7<>"",(IF(("2/1/2007"-E7)>0,(IF(("2/1/2007"-F7)>30,"",(IF(("2/1/2007"-E7)<16,0.5,(IF(("2/1/2007"-F7)>16,0.5,1)))))),"")),"")))),(IF(D7<>"",(IF(("2/1/2007"-E7)>0,(IF(("2/1/2007"-F7)>30,"",(IF(("2/1/2007"-E7)<16,0.5,(IF(("2/1/2007"-F7)>16,0.5,1)))))),"")),"")))