Fishbone†
<font color=blue>Does strange things while sleepin
- Joined
- May 31, 2001
- Messages
- 1,372
Something is wrong with my formula..... I'm sure in the formatting of it, but I can't figure it out..... I'm getting an inflated answer, and maybe it's just cuz my eyes are bugging out trying to reconfigure it, but I can't get it to work..... I believe the problem in the placement of the parantheses, so I think you can "ignore" the links...... ARGHH!!! Someone PLEASE help me!!! Oh, by the way, I'm subtracting my cost of goods from my sales and dividing it by my sales to get my gross profit percent..... OH MY GOODNESS, I don't even know what I'm doing anymore!!!

=SUM(((SUM(IF(Worksheet!$E$4:$E$9911=$A30,IF(Worksheet!$A$4:$A$9911=2003,IF(Worksheet!$B$4:$B$9911=$C$5,IF(Worksheet!$C$4:$C$9911="actuals",Worksheet!$K$4:$K$9911,0),0),0),0)))-(SUM(IF(Worksheet!$E$4:$E$9911=$A30,IF(Worksheet!$A$4:$A$9911=2003,IF(Worksheet!$B$4:$B$9911=$C$5,IF(Worksheet!$C$4:$C$9911="actuals",Worksheet!$P$4:$P$9911,0),0),0),0))))/(SUM(IF(Worksheet!$E$4:$E$9911=$A30,IF(Worksheet!$A$4:$A$9911=2003,IF(Worksheet!$B$4:$B$9911=$C$5,IF(Worksheet!$C$4:$C$9911="actuals",Worksheet!$K$4:$K$9911,0),0),0),0))))
P.S. I know it's an array formula, and have set it to be, so that's not the problem.

=SUM(((SUM(IF(Worksheet!$E$4:$E$9911=$A30,IF(Worksheet!$A$4:$A$9911=2003,IF(Worksheet!$B$4:$B$9911=$C$5,IF(Worksheet!$C$4:$C$9911="actuals",Worksheet!$K$4:$K$9911,0),0),0),0)))-(SUM(IF(Worksheet!$E$4:$E$9911=$A30,IF(Worksheet!$A$4:$A$9911=2003,IF(Worksheet!$B$4:$B$9911=$C$5,IF(Worksheet!$C$4:$C$9911="actuals",Worksheet!$P$4:$P$9911,0),0),0),0))))/(SUM(IF(Worksheet!$E$4:$E$9911=$A30,IF(Worksheet!$A$4:$A$9911=2003,IF(Worksheet!$B$4:$B$9911=$C$5,IF(Worksheet!$C$4:$C$9911="actuals",Worksheet!$K$4:$K$9911,0),0),0),0))))
P.S. I know it's an array formula, and have set it to be, so that's not the problem.


