F
Frick
I can't seem to get this formula right. I hope someone can help me out here.
IF(B15=0,1,IF(DATE(YEAR($B15),MONTH($B15),1)>E$4,DAYS360(DATE(YEAR($B15),MONTH($B15),1),E$4)/30,IF(DATE(YEAR($B15),MONTH($B15),1)=E$4,"Construction
Start",IF(DATE(YEAR($C15),MONTH($C15)+1,0)>E$5,"Construction",IF(DATE(YEAR($C15),MONTH($C15)+1,0)=E$5,"Construction
Line 1End",IF($C15="",0,ROUND(DAYS360(DATE(YEAR($C15),MONTH($C15)+1,0),E$5)/30,0)),0)))))
b15=start date (if there is one)
c15=finish date (if there is one)
e4 ===> ad4 = 1st day of the month
e5 ===> ad5 = Last day of the month
What this formula should do:
1. Look to see if b15 has a date entered.
2. If it doesn't return 0
3. If it does then it should do one of several things:
3a. Return a negative number in each column for all months prior to start date
3b. Return "Construction Start" in the column that corresponds to the start date
3c. Return "Construction for all months between start date and finish date
3d. Return a postive number +1 for each column month after the finish date
I think where I am having my problem is with the end of the formula where it uses the ROUND
function.
Since this formula drives a number of other formulas throughout the spread sheet it is important
that it return the correct information and not a #VALUE! error message.
Thanks, Frick
IF(B15=0,1,IF(DATE(YEAR($B15),MONTH($B15),1)>E$4,DAYS360(DATE(YEAR($B15),MONTH($B15),1),E$4)/30,IF(DATE(YEAR($B15),MONTH($B15),1)=E$4,"Construction
Start",IF(DATE(YEAR($C15),MONTH($C15)+1,0)>E$5,"Construction",IF(DATE(YEAR($C15),MONTH($C15)+1,0)=E$5,"Construction
Line 1End",IF($C15="",0,ROUND(DAYS360(DATE(YEAR($C15),MONTH($C15)+1,0),E$5)/30,0)),0)))))
b15=start date (if there is one)
c15=finish date (if there is one)
e4 ===> ad4 = 1st day of the month
e5 ===> ad5 = Last day of the month
What this formula should do:
1. Look to see if b15 has a date entered.
2. If it doesn't return 0
3. If it does then it should do one of several things:
3a. Return a negative number in each column for all months prior to start date
3b. Return "Construction Start" in the column that corresponds to the start date
3c. Return "Construction for all months between start date and finish date
3d. Return a postive number +1 for each column month after the finish date
I think where I am having my problem is with the end of the formula where it uses the ROUND
function.
Since this formula drives a number of other formulas throughout the spread sheet it is important
that it return the correct information and not a #VALUE! error message.
Thanks, Frick