Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Param
 
Posts: n/a
Default How to find avg, min & max for grading subject

Hi, with help from Mr.Ardus Peter, sjoblom & philips, I manage to get some
information about formula for grading. But I still having problem.

my grades all at cell e.g A2:A35. (beside I enter grade A,B,C,D,E there is
also
simbol "-" and "x".('-' for not taking the subject and 'x' for absent)

I try this:
Average: =CHAR(ROUND(AVERAGE(CODE(A2:A35)),0))
Max: =CHAR(MIN(CODE(A2:A35)))


work fine. But when i enter simbol "-" or "x" it show #value.

Pls help me how to overcome this problem. TQ

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default How to find avg, min & max for grading subject

It's ugly but seems to work
=CHAR(ROUND(SUMPRODUCT(--(CODE(A2:A35)=65),--(CODE(A2:A35)<=69),CODE(A2:A35))/SUMPRODUCT(--(CODE(A2:A35)=65),--(CODE(A2:A35)<=69)),0))

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Param" wrote in message
...
Hi, with help from Mr.Ardus Peter, sjoblom & philips, I manage to get some
information about formula for grading. But I still having problem.

my grades all at cell e.g A2:A35. (beside I enter grade A,B,C,D,E there is
also
simbol "-" and "x".('-' for not taking the subject and 'x' for absent)

I try this:
Average: =CHAR(ROUND(AVERAGE(CODE(A2:A35)),0))
Max: =CHAR(MIN(CODE(A2:A35)))


work fine. But when i enter simbol "-" or "x" it show #value.

Pls help me how to overcome this problem. TQ



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default How to find avg, min & max for grading subject

Hi!

I think you'd be better off just using a number grade.......or, using helper
cells to convert the letters to an equivalent number.

Entering those chars: "-", "x" in the range shouldn't cause an error but
they would be included in the calculation which will lead to incorrect
results. The only way I could generate an error is if there were empty cells
within the range. Is that a possibility?

To exclude those chars from the calcs:

Entered as an array:

If you only want to account for letter grades A, B, C, D, E:

=CHAR(ROUND(AVERAGE(IF((CODE(A2:A35)=65)*(CODE(A2 :A35)<=69),CODE(A2:A35))),0))

=CHAR(MIN(IF((CODE(A2:A35)=65)*(CODE(A2:A35)<=69) ,CODE(A2:A35))))

Biff

"Param" wrote in message
...
Hi, with help from Mr.Ardus Peter, sjoblom & philips, I manage to get some
information about formula for grading. But I still having problem.

my grades all at cell e.g A2:A35. (beside I enter grade A,B,C,D,E there is
also
simbol "-" and "x".('-' for not taking the subject and 'x' for absent)

I try this:
Average: =CHAR(ROUND(AVERAGE(CODE(A2:A35)),0))
Max: =CHAR(MIN(CODE(A2:A35)))


work fine. But when i enter simbol "-" or "x" it show #value.

Pls help me how to overcome this problem. TQ



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
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Code needed to find records from bottom up Andy Excel Discussion (Misc queries) 4 December 5th 05 03:27 AM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
Help!: lead sheet data needs to fill appropriate subject sheets carebear Excel Worksheet Functions 1 November 12th 04 09:03 PM


All times are GMT +1. The time now is 07:44 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"