phillygirl777
Member
Hi everyone! I am using Excel 2007. I have two working formulas:
=IF($T5="",VLOOKUP($C5,'Plan Data'!$C:$AJ,21+MONTH(Y$3),FALSE),(IF(AND($U5=2012,$V5>MONTH(Y$3)),0,(IF(AND($H5="US",MONTH(Y$3)<4),+$M5*Y$2/$AJ$2,IF(AND($H5="US",MONTH(Y$3)>=4),+$P5*Y$2/$AJ$2,IF(AND($H5<>"US",MONTH(Y$3)<4),+$M5/12,IF(AND($H5<>"US",MONTH(Y$3)>=4),+$P5/12))))))))
=IF(AND($H5="US",MONTH(Y$3)<4),+$M5*Y$2/$AJ$2*AQ5,IF(AND($H5="US",MONTH(Y$3)>=4),+$P5*Y$2/$AJ$2*AQ5,IF(AND($H5<>"US",MONTH(Y$3)<4),+$M5/12*AQ5,IF(AND($H5<>"US",MONTH(Y$3)>=4),+$P5/12*AQ5))))
Now I need to put them together and make them work. The first one should work when the following is true:
IF(Y$4="Forecast")
The second one should work in this case:
IF(Y$4="Actual")
There is no ELSE for Forecast and Actual because this field is pre-populated by an error-proof formula that doesn't allow for anything else.
Any suggestions??
Thanks!
=IF($T5="",VLOOKUP($C5,'Plan Data'!$C:$AJ,21+MONTH(Y$3),FALSE),(IF(AND($U5=2012,$V5>MONTH(Y$3)),0,(IF(AND($H5="US",MONTH(Y$3)<4),+$M5*Y$2/$AJ$2,IF(AND($H5="US",MONTH(Y$3)>=4),+$P5*Y$2/$AJ$2,IF(AND($H5<>"US",MONTH(Y$3)<4),+$M5/12,IF(AND($H5<>"US",MONTH(Y$3)>=4),+$P5/12))))))))
=IF(AND($H5="US",MONTH(Y$3)<4),+$M5*Y$2/$AJ$2*AQ5,IF(AND($H5="US",MONTH(Y$3)>=4),+$P5*Y$2/$AJ$2*AQ5,IF(AND($H5<>"US",MONTH(Y$3)<4),+$M5/12*AQ5,IF(AND($H5<>"US",MONTH(Y$3)>=4),+$P5/12*AQ5))))
Now I need to put them together and make them work. The first one should work when the following is true:
IF(Y$4="Forecast")
The second one should work in this case:
IF(Y$4="Actual")
There is no ELSE for Forecast and Actual because this field is pre-populated by an error-proof formula that doesn't allow for anything else.
Any suggestions??
Thanks!