Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Senior Member
 
Posts: 118
Default how to find out the grade from marks-functions

i have to find out grades from the marks of students. i have the following worksheet.
--------------------------------------------------------------
slno name mk-1 mk-2 mk-3 mk-4 total grade

1 ABC 20 24 22 21 87 A
2 DEF 0 0 0 0 0 ABS
3 EFG 18 20 9 20 67 B
4 JKL 22 9 7 16 54 B
-------------------------------------------------------------------
i tried the following formula
=IF ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF(G3=1, "C","ABS"))))
I get the results. of course "ABS" for the second record.

there are records of four students. the second one is absent for the examinations and he doesnot have any marks. if i put zero in all the marks colums i get the result as "ABS"
but if i leave the marks columns of the absentee blank can i get the result as "ABS" ? i tried the following but failed to get it accepted by excel.
=IF ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF*G3=1, "C","ABS")))),"ABS")
Kindly help. thanks and have a nice day.

Last edited by sumesh56 : February 29th 12 at 01:05 AM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default how to find out the grade from marks-functions

On Wed, 29 Feb 2012 00:59:39 +0000, sumesh56 wrote:


i have to find out grades from the marks of students. i have the
following worksheet.
--------------------------------------------------------------
slno name mk-1 mk-2 mk-3 mk-4 total grade

1 ABC 20 24 22 21 87 A
2 DEF 0 0 0 0 0 ABS
3 EFG 18 20 9 20 67 B
4 JKL 22 9 7 16 54 B
-------------------------------------------------------------------
i tried the following formula
=IF ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF(G3=1, "C","ABS"))))
I get the results. of course "ABS" for the second record.

there are records of four students. the second one is absent for the
examinations and he doesnot have any marks. if i put zero in all the
marks colums i get the result as "ABS"
but if i leave the marks columns of the absentee blank can i get the
result as "ABS" ? i tried the following but failed to get it accepted by
excel.
=IF
ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF*G3=1 ,"C","ABS")))),"ABS")
Kindly help. thanks and have a nice day.


G3: =SUM(C3:F3)
Fill down.
If the Marks column are left blank, or if they are all zero's, the functionwill still add to 0,

Then try this formula for the grades:

=VLOOKUP(G3,{0,"ABS";1,"C";51,"B";75,"A"},2)
  #3   Report Post  
Senior Member
 
Posts: 118
Default

Quote:
Originally Posted by Ron Rosenfeld[_2_] View Post
On Wed, 29 Feb 2012 00:59:39 +0000, sumesh56 wrote:


i have to find out grades from the marks of students. i have the
following worksheet.
--------------------------------------------------------------
slno name mk-1 mk-2 mk-3 mk-4 total grade

1 ABC 20 24 22 21 87 A
2 DEF 0 0 0 0 0 ABS
3 EFG 18 20 9 20 67 B
4 JKL 22 9 7 16 54 B
-------------------------------------------------------------------
i tried the following formula
=IF ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF(G3=1, "C","ABS"))))
I get the results. of course "ABS" for the second record.

there are records of four students. the second one is absent for the
examinations and he doesnot have any marks. if i put zero in all the
marks colums i get the result as "ABS"
but if i leave the marks columns of the absentee blank can i get the
result as "ABS" ? i tried the following but failed to get it accepted by
excel.
=IF
ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF*G3=1 ,"C","ABS")))),"ABS")
Kindly help. thanks and have a nice day.


G3: =SUM(C3:F3)
Fill down.
If the Marks column are left blank, or if they are all zero's, the functionwill still add to 0,

Then try this formula for the grades:

=VLOOKUP(G3,{0,"ABS";1,"C";51,"B";75,"A"},2)
Thanks a lot Mr.RR. it works. now can you explain what does the digit 2 at the end of the string means? have a nice day.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default how to find out the grade from marks-functions

On Thu, 1 Mar 2012 00:50:40 +0000, sumesh56 wrote:


'Ron Rosenfeld[_2_ Wrote:
;1499868']On Wed, 29 Feb 2012 00:59:39 +0000, sumesh56
wrote:
-

i have to find out grades from the marks of students. i have the
following worksheet.
--------------------------------------------------------------
slno name mk-1 mk-2 mk-3 mk-4 total grade

1 ABC 20 24 22 21 87 A
2 DEF 0 0 0 0 0 ABS
3 EFG 18 20 9 20 67 B
4 JKL 22 9 7 16 54 B
-------------------------------------------------------------------
i tried the following formula
=IF ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF(G3=1, "C","ABS"))))
I get the results. of course "ABS" for the second record.

there are records of four students. the second one is absent for the
examinations and he doesnot have any marks. if i put zero in all the
marks colums i get the result as "ABS"
but if i leave the marks columns of the absentee blank can i get the
result as "ABS" ? i tried the following but failed to get it accepted

by
excel.
=IF
ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF*G3=1 ,"C","ABS")))),"ABS")
Kindly help. thanks and have a nice day.-


G3: =SUM(C3:F3)
Fill down.
If the Marks column are left blank, or if they are all zero's, the
functionwill still add to 0,

Then try this formula for the grades:

=VLOOKUP(G3,{0,"ABS";1,"C";51,"B";75,"A"},2)


Thanks a lot Mr.RR. it works. now can you explain what does the digit 2
at the end of the string means? have a nice day.


Glad to help, thanks for the feedback. As for the "2", and other explanations for how VLOOKUP works, look at HELP for the VLOOKUP function. 2 is the column number. The array constant is the table array, and is constructed as a 4 row, 2 column array. It is equivalent to the table_range referred to by VLOOKUP HELP.


-------------------------------

The VLOOKUP function syntax has the following arguments (argument: A value that provides information to an action, an event, a method, a property, a function, or a procedure.):

lookup_value Required. The value to search in the first column of the table or range. The lookup_value argument can be a value or a reference. If the value you supply for the lookup_value argument is smaller than the smallest value in the first column of the table_array argument, VLOOKUP returns the #N/A error value.

table_array Required. The range of cells that contains the data. You can use a reference to a range (for example, A2:D8), or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text are equivalent.

col_index_num Required. The column number in the table_array argument from which the matching value must be returned. A col_index_num argument of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on.
  #5   Report Post  
Senior Member
 
Posts: 118
Default

Quote:
Originally Posted by Ron Rosenfeld[_2_] View Post
On Thu, 1 Mar 2012 00:50:40 +0000, sumesh56 wrote:


'Ron Rosenfeld[_2_ Wrote:
;1499868']On Wed, 29 Feb 2012 00:59:39 +0000, sumesh56
wrote:
-

i have to find out grades from the marks of students. i have the
following worksheet.
--------------------------------------------------------------
slno name mk-1 mk-2 mk-3 mk-4 total grade

1 ABC 20 24 22 21 87 A
2 DEF 0 0 0 0 0 ABS
3 EFG 18 20 9 20 67 B
4 JKL 22 9 7 16 54 B
-------------------------------------------------------------------
i tried the following formula
=IF ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF(G3=1, "C","ABS"))))
I get the results. of course "ABS" for the second record.

there are records of four students. the second one is absent for the
examinations and he doesnot have any marks. if i put zero in all the
marks colums i get the result as "ABS"
but if i leave the marks columns of the absentee blank can i get the
result as "ABS" ? i tried the following but failed to get it accepted

by
excel.
=IF
ISNUMBER(G3),IF(G3=75,"A",IF(G3=51,"B",IF*G3=1 ,"C","ABS")))),"ABS")
Kindly help. thanks and have a nice day.-


G3: =SUM(C3:F3)
Fill down.
If the Marks column are left blank, or if they are all zero's, the
functionwill still add to 0,

Then try this formula for the grades:

=VLOOKUP(G3,{0,"ABS";1,"C";51,"B";75,"A"},2)


Thanks a lot Mr.RR. it works. now can you explain what does the digit 2
at the end of the string means? have a nice day.


Glad to help, thanks for the feedback. As for the "2", and other explanations for how VLOOKUP works, look at HELP for the VLOOKUP function. 2 is the column number. The array constant is the table array, and is constructed as a 4 row, 2 column array. It is equivalent to the table_range referred to by VLOOKUP HELP.


-------------------------------

The VLOOKUP function syntax has the following arguments (argument: A value that provides information to an action, an event, a method, a property, a function, or a procedure.):

lookup_value Required. The value to search in the first column of the table or range. The lookup_value argument can be a value or a reference. If the value you supply for the lookup_value argument is smaller than the smallest value in the first column of the table_array argument, VLOOKUP returns the #N/A error value.

table_array Required. The range of cells that contains the data. You can use a reference to a range (for example, A2:D8), or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text are equivalent.

col_index_num Required. The column number in the table_array argument from which the matching value must be returned. A col_index_num argument of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on.
thank you very much for the explanation. have a nice day.
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
Formula to compute letter grade based on percentage grade S.Hinkle Excel Discussion (Misc queries) 1 September 3rd 09 07:54 PM
Where can I find how to use Excel 2007 to grade tests? Dale Pulliam New Users to Excel 1 April 2nd 08 02:37 PM
How to find best and worst grade? Aivis Excel Worksheet Functions 5 August 6th 07 07:04 PM
when doing a grade book how do you drop the lowest grade dove Excel Worksheet Functions 1 November 28th 06 06:54 PM
when doing a grade book how do you drop the lowest grade CLR Excel Worksheet Functions 0 November 28th 06 06:53 PM


All times are GMT +1. The time now is 04:19 AM.

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

About Us

"It's about Microsoft Excel"