Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a grade spreadsheet for my teacher wife. Total points available,
total points achieved, percent (grade). I'm then using a LOOKUP to populate a letter grade column. =LOOKUP(C5,{0,60,63,67,70,73,77,80,83,87,90,93},{" E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) The problem is rounding. The calculated percentage achieved...is a cell with a formula that displays as a whole number. The actual calculated value is NOT a whole number. So, the LOOKUP will display a 92.78 as an A, and a 93.01 as an A+. Both actually round to a 93/A+. Is there any way to avoid this annoyance? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You don't have an A+ I assume you mean A & A-
Try: =LOOKUP(ROUND(C5,0),{0,60,63,67,70,73,77,80,83,87, 90,93},{"E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) -- HTH Sandy with @tiscali.co.uk "Hubie" wrote in message ... I have a grade spreadsheet for my teacher wife. Total points available, total points achieved, percent (grade). I'm then using a LOOKUP to populate a letter grade column. =LOOKUP(C5,{0,60,63,67,70,73,77,80,83,87,90,93},{" E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) The problem is rounding. The calculated percentage achieved...is a cell with a formula that displays as a whole number. The actual calculated value is NOT a whole number. So, the LOOKUP will display a 92.78 as an A, and a 93.01 as an A+. Both actually round to a 93/A+. Is there any way to avoid this annoyance? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Either change the formula in C5 to include the round function ex:
=your_function would become =round(your_function,0) Or include the round in the lookup: =LOOKUP(round(C5,0),{0,60,63,67,70,73,77,80,83,87, 90,93},{"E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) "Hubie" wrote: I have a grade spreadsheet for my teacher wife. Total points available, total points achieved, percent (grade). I'm then using a LOOKUP to populate a letter grade column. =LOOKUP(C5,{0,60,63,67,70,73,77,80,83,87,90,93},{" E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) The problem is rounding. The calculated percentage achieved...is a cell with a formula that displays as a whole number. The actual calculated value is NOT a whole number. So, the LOOKUP will display a 92.78 as an A, and a 93.01 as an A+. Both actually round to a 93/A+. Is there any way to avoid this annoyance? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I'd change the formula in C5 to round to the nearest integer, i.e. =ROUND(formula,0) where formula is your existing formula in C5, or alternatively round the lookup value in your LOOKUP formula, i.e. =LOOKUP(ROUND(C5,0),{0,60,63,67,70,73,77,80,83,87, 90,93},{" E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=529029 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Very nice...thanks everyone.
H "daddylonglegs" wrote: I'd change the formula in C5 to round to the nearest integer, i.e. =ROUND(formula,0) where formula is your existing formula in C5, or alternatively round the lookup value in your LOOKUP formula, i.e. =LOOKUP(ROUND(C5,0),{0,60,63,67,70,73,77,80,83,87, 90,93},{" E","D-","D","D+","C-","C","C+","B-","B","B+","A-","A"}) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=529029 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I Need a formula to evaluate a cell with + or - values | Excel Worksheet Functions | |||
Return Range of Numerical Values in Single Column based on Frequency Percentage | Excel Worksheet Functions | |||
View of x-axis values | Charts and Charting in Excel | |||
How can I break values apart that are in the same cell? | Excel Worksheet Functions | |||
when I add values in cells which have been calculated with percen. | Excel Discussion (Misc queries) |