IFTHEN Stuff

Excel Ranger

Board Regular
Joined
Oct 31, 2005
Messages
54
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
I'm formatting a quick ref grade tracking sheet for my PocketPC. The part that I'm having trouble with is the last cell in a column. What I am trying to do is have a letter grade represent a range of percentile grades (i.e. > 89.9 = "A", > 79.9 = "B", ..."F".).

Subtotal 0.0 (=SUM(B2:B13))
Div by 250 0.0 (=B14/250) (MAX POSSIBLE FOR COURSE IS 250)
x 100 0.0 (=B15*100)
Grade ??? If > 89.9, "A"…

The target cell for the letter grade is B17. I had this formula worked out before, but I had inadvertantly deleted the file that it was in. OOPS!

Thank you.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Try something like:

=LOOKUP(A1,{0,10,20,30,40},{"E","D","C","B","A"})

Needs to be adjusted to meet your values.
 

Excel Ranger

Board Regular
Joined
Oct 31, 2005
Messages
54
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Tweaked it a bit. American schools don't use the "E" grade.

=LOOKUP(B16,{50;60;70;80;90},{"F";"D";"C";"B";"A"})

Thank you very much. It looks easier than I thought.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Unless 50 is the minimum grade, you may want to change that to 0
 

Excel Ranger

Board Regular
Joined
Oct 31, 2005
Messages
54
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
I threw in some values for a total less than 50 and it showed up as "F", so it works for me.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,054
Messages
5,835,153
Members
430,342
Latest member
Sailingexcel

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
Top