Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default 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




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default 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


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default 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
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find avg, min & max for grading subject Param Excel Worksheet Functions 2 March 17th 06 08:04 PM
student needing help w/vlookup function grading criteria Julie Excel Worksheet Functions 2 October 21st 05 01:13 PM
How do I create a grading system in Office Excel? Miss Dunkley New Users to Excel 1 January 29th 05 02:28 PM
Grading Function Question... spooker4u Excel Worksheet Functions 2 November 2nd 04 01:45 PM
Grading Function Question... spooker4u Excel Worksheet Functions 1 November 1st 04 02:49 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"