Can anyone tell me why this formula will not work in excel? Do I have too many if statements--I can't figure it out! Every time I push ctrl+shift+enter it says the formula contains an error and then highlights INDIRECT (bold below). What does this mean?
Thanks,
Matt
=SUM(IF($E$4<>1,IF($B$6=0,IF($D$13:INDIRECT($J$39)>$Y3-11.25,IF
($D$13:INDIRECT($J$39)<=$Y3+11.25,LOOKUP($B$13:INDIRECT($J$37),
Power_Curves!$H$3:$H$674,INDIRECT($K$36):INDIRECT($K$37)))),
IF($E$13:INDIRECT($J$40)>$Y3-11.25,IF($E$13:INDIRECT($J$40)<=$Y3+11.25,
LOOKUP($B$13:INDIRECT($J$37),Power_Curves!$H$3:$H$674,
INDIRECT($K$36):INDIRECT($K$37))))),IF($B$13:INDIRECT($J$37)>=
Power_Curves!$E$65,IF($B$13:INDIRECT($J$37)<=Power_Curves!$E$66,
IF($B$6=0,IF($D$13:INDIRECT($J$39)>$Y3-11.25,IF($D$13:INDIRECT($J$39)<=
$Y3+11.25,LOOKUP($B$13:INDIRECT($J$37),Power_Curves!$H$3:$H$674,
INDIRECT($K$36):INDIRECT($K$37)))),IF($E$13:INDIRECT($J$40)>$Y3-11.25,
IF($E$13:INDIRECT($J$40)<=$Y3+11.25,LOOKUP($B$13:INDIRECT($J$37),
Power_Curves!$H$3:$H$674,INDIRECT($K$36):INDIRECT($K$37)))))))))/
($K$29*(60/$E$6))
Thanks,
Matt
=SUM(IF($E$4<>1,IF($B$6=0,IF($D$13:INDIRECT($J$39)>$Y3-11.25,IF
($D$13:INDIRECT($J$39)<=$Y3+11.25,LOOKUP($B$13:INDIRECT($J$37),
Power_Curves!$H$3:$H$674,INDIRECT($K$36):INDIRECT($K$37)))),
IF($E$13:INDIRECT($J$40)>$Y3-11.25,IF($E$13:INDIRECT($J$40)<=$Y3+11.25,
LOOKUP($B$13:INDIRECT($J$37),Power_Curves!$H$3:$H$674,
INDIRECT($K$36):INDIRECT($K$37))))),IF($B$13:INDIRECT($J$37)>=
Power_Curves!$E$65,IF($B$13:INDIRECT($J$37)<=Power_Curves!$E$66,
IF($B$6=0,IF($D$13:INDIRECT($J$39)>$Y3-11.25,IF($D$13:INDIRECT($J$39)<=
$Y3+11.25,LOOKUP($B$13:INDIRECT($J$37),Power_Curves!$H$3:$H$674,
INDIRECT($K$36):INDIRECT($K$37)))),IF($E$13:INDIRECT($J$40)>$Y3-11.25,
IF($E$13:INDIRECT($J$40)<=$Y3+11.25,LOOKUP($B$13:INDIRECT($J$37),
Power_Curves!$H$3:$H$674,INDIRECT($K$36):INDIRECT($K$37)))))))))/
($K$29*(60/$E$6))