excel if then formula not working in 2003

cnu nagula

Board Regular
Joined
Aug 28, 2008
Messages
83
Dear Friends,

i have a worksheet in 2007, the following formula is created to class report purpose and it is working properly in 2007, the sheet saved as to 2003 and the formula is not working, please help for it.

=IF(E9<9,"Fail",IF(F9<9,"Fail",IF(G9<9,"Fail",IF(H9<9,"Fail",IF(I9<9,"Fail",IF(E9="A","Fail",IF(F9="A","Fail",IF(G9="A","Fail",IF(H9="A","Fail",IF(I9="A","Fail",IF(K9>=90,"A+",IF(K9>=80,"A",IF(K9>=70,"B+",IF(K9>=60,"B",IF(K9>=40,"C","D")))))))))))))))
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Dear Friends,

i have a worksheet in 2007, the following formula is created to class report purpose and it is working properly in 2007, the sheet saved as to 2003 and the formula is not working, please help for it.

=IF(E9<9,"Fail",IF(F9<9,"Fail",IF(G9<9,"Fail",IF(H9<9,"Fail",IF(I9<9,"Fail",IF(E9="A","Fail",IF(F9="A","Fail",IF(G9="A","Fail",IF(H9="A","Fail",IF(I9="A","Fail",IF(K9>=90,"A+",IF(K9>=80,"A",IF(K9>=70,"B+",IF(K9>=60,"B",IF(K9>=40,"C","D")))))))))))))))
One way...

=IF(SUM(COUNTIF(E9:I9,{"<9","A"})),"Fail",IF(K9>=90,"A+",IF(K9>=80,"A",IF(K9>=70,"B+",IF(K9>=60,"B",IF(K9>=40,"C","D"))))))
 
Upvote 0
Try

=IF(OR(E9<9,F9<9,G9<9,H9<9,I9<9),"Fail",IF(OR(E9="A",F9="A",G9="A",H9="A",I9="A"),"Fail",LOOKUP(K9,{0,40,60,70,80,90},{"D","C","B","B+","A","A+"})))
 
Upvote 0
You can only have 7 nested IF statements which is why it's not working.

You can merge the first several with an OR statement:

=IF(OR(E9<9,F9<9,G9<9,H9<9,I9<9),"Fail",TheRestOfYourTests)

which will test those without the IF, but if either of those are true, then it will kick out the fail but if not, then it will perform the rest of your testing.
 
Upvote 0
One way...

=IF(SUM(COUNTIF(E9:I9,{"<9","A"})),"Fail",IF(K9>=90,"A+",IF(K9>=80,"A",IF(K9>=70,"B+",IF(K9>=60,"B",IF(K9>=40,"C","D"))))))

Try

=IF(OR(E9<9,F9<9,G9<9,H9<9,I9<9),"Fail",IF(OR(E9="A",F9="A",G9="A",H9="A",I9="A"),"Fail",LOOKUP(K9,{0,40,60,70,80,90},{"D","C","B","B+","A","A+"})))

Thank you friends, its working
Combining the best of both worlds you end up with:

=IF(SUM(COUNTIF(E9:I9,{"<9","A"})),"Fail",LOOKUP(K9,{0,40,60,70,80,90},{"D","C","B","B+","A","A+"}))

:)
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top