how did you not google this to get your answer? or use the many ways excel explains this?
An easy way to break down the problem is simply to put the nested statements in seperate cells, it will allow you to conceptualize it.
Taking the bottom one:
Code:
IF(AND(AVERAGE(D2:D4)=333,SUM(E2:D4)>300,B5/2>600),IF(A10>0.09,"fuck",IF(D7=416.25,"Yes","No")),"too stoned")
1. IF(
2. AND(AVERAGE(D2:D4)=333,SUM(E2:D4)>300,B5/2>600)
,
3. IF(A10>0.09,"fuck",IF(D7=416.25,"Yes","No"))
,
4. "too stoned"
)
Put 2 in a cell, lets say Z1. Put 3 in say Z2, 4 in Z3. Then in another cell put "=IF(Z1, Z2, Z3)" This may help if combining concepts is too overwhelming?
If you want to do it all in one go in your head, just evaluate 2. If its true, do 3, otherwise statement evaluates to 4. In a test situation you don't want to even evaluate 3 until you've evaluated 2 and made sure it is true.
If you are confused about the actual syntax of the various functions, just fire up excel and use the help, it has detailed information as well as examples. Or you can use the function builder to help break it down. Or you could just enter the cell and everything will be color coded. You should really use excel to help you understand...
IF Syntax
http://www.soul-burn.com/images/excel1.JPG
OR Syntax
http://www.soul-burn.com/images/excel2.JPG
Using Function Builder
http://www.soul-burn.com/images/excel3.JPG
Entering cell and looking at the pretty colors
http://www.soul-burn.com/images/excel4.JPG
Don't people learn order of operations in grade school?