ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Grading function in Excel (https://www.excelbanter.com/excel-worksheet-functions/141714-grading-function-excel.html)

Shreekant Patel

Grading function in Excel
 
Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP


L. Howard Kittle

Grading function in Excel
 
Try this in the destination cells.

=LOOKUP(A1,{"a","b","c","d","e"},{5,4,3,2,1})

HTH
Regards,
Howard

"Shreekant Patel" wrote in message
oups.com...
Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP




Toppers

Grading function in Excel
 
=70-CODE(UPPER(A1))

and copy down

"Shreekant Patel" wrote:

Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP



Billy Liddel

Grading function in Excel
 
Another way

=IF(A1="a",5,IF(A1="B",4,IF(A1="C",3,IF(A1="d",2,I F(A1="E",1)))))

or to find the total in one go use:

=COUNTIF(A1:A6,"A")*5+COUNTIF($A$1:$A$6,"B")*4+COU NTIF(A1:A6,"C")*3+COUNTIF(A1:A6,"D")*2+COUNTIF(A1: A6,"E2")

Regards
Peter

"Shreekant Patel" wrote:

Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP



Gord Dibben

Grading function in Excel
 
Enter this in B1 and copy down as far as you wish.

=LOOKUP(A1,{"A","B","C","D","E"},{5,4,3,2,1})

Start entering letters in column A


Gord Dibben MS Excel MVP

On 5 May 2007 12:05:07 -0700, Shreekant Patel wrote:

Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP



joel

Grading function in Excel
 
Topper: I think its a little clearer to do the following

=Code("F")-CODE(UPPER(A1))

Most people would not know the ascii code for F was 70.

"Toppers" wrote:

=70-CODE(UPPER(A1))

and copy down

"Shreekant Patel" wrote:

Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP



Ron Rosenfeld

Grading function in Excel
 
On 5 May 2007 12:05:07 -0700, Shreekant Patel wrote:

Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP


Since you are getting all kinds of answers, here's another solution:

=IF(ISTEXT(A1),MATCH(A1,{"e","d","c","b","a"},0)," ")


--ron

Santipong

Grading function in Excel
 
Another way:

=SUM((A1<{"a","b","c","d","e"})+0)+1

Ctrl+Shift+Enter or

=SUMPRODUCT((A1<{"a","b","c","d","e"})+0)+1

Enter

Santipong


Shreekant Patel เขียน:
Hello,

I hope that someone would be able to help me on what I am trying to
achieve. What I am trying to have is a simple grading system that
converts a grade to a number so for example:

A = 5
B = 4
C = 3
D = 2
E = 1

-What I have tried: (Works for one value)
In cell B1 I inputted a function using an IF statement where by the
Logical Test is A1="A" then The_Value_True = 5.

So the function is =IF(A1="A",5).

So if in Cell A1 I typed A, then in Cell B1, I get the number 5.

What I would like to have is, if Cells A1:A6 have the data, A, B, C,
D, A, D, I would like the numbers 5, 4, 3, 2, 5, 2 appear in the cells
B1:B6.

Your help is much appreciated on this little task.

Thanks
SP




All times are GMT +1. The time now is 03:01 PM.

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