ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I assign a number value to a letter grade in Excel? (https://www.excelbanter.com/excel-worksheet-functions/20698-how-can-i-assign-number-value-letter-grade-excel.html)

BlackBond

How can I assign a number value to a letter grade in Excel?
 
This is very simple, but I can't find a variable assignment function. How
can I assign a number value to a letter grade presented in an Excel table?

Thanks

Roland

You will probably have to set up a lookup table, and use the VLOOKUP function.

A 1
B 2
C 3
D 4
E 5


"BlackBond" wrote:

This is very simple, but I can't find a variable assignment function. How
can I assign a number value to a letter grade presented in an Excel table?

Thanks


Louis Jaramillo via OfficeKB.com

Do you have a spreadsheet with the layout?

LJ

--
Message posted via http://www.officekb.com

Gord Dibben

Enter this formula in B1. You don't need a separate table, the table is in
the formula.

=LOOKUP(A1,{0,50,65,70,85},{"F","D","C","B","A"})

Enter a number in A1

Or go with the VLOOKUP table as proposed by other responders.


Gord Dibben Excel MVP


On Tue, 5 Apr 2005 11:17:05 -0700, BlackBond
wrote:

This is very simple, but I can't find a variable assignment function. How
can I assign a number value to a letter grade presented in an Excel table?

Thanks




All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com