thestones757

New Member
Joined
Feb 24, 2010
Messages
24
I was using an If statement, thought it was set up correctly but as I've been entering data it hasn't represented data like i wanted it to. It represents a grade scale for my classes where D7 is my final percentage



=IF(D7>97,"A+",IF(93<D7<96.9,"A",IF(90<D7<92.9,"A-",IF(87<D7<89.9,"B+",IF(83<D7<86.9,"B",IF(80<D7<82.9,"B-",IF(77<D7<79.9,"C+",IF(73<D7<76.9,"C",IF(70<D7<72.9,"C-",IF(60<D7<69.9,"D",IF(D7<59.9,"E","E")))))))))))


for some reason it only displays either an A+ or an E.


Any ideas why this doesn't work?

I have never used an IF statement inside an IF statement but I thought I had done it correctly. Thanks for the help.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try:



=LOOKUP(D7,{0,60,70,73,77,80,83,87,90,93,97},{"E","D","C-","C","C+","B-","B","B+","A-","A","A+"})

if you want to display blank until cell is filled, then:

=IF(D7="","",LOOKUP(D7,{0,60,70,73,77,80,83,87,90,93,97},{"E","D","C-","C","C+","B-","B","B+","A-","A","A+"}))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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