Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi All,
I have a trouble with Rank() function. I have written normal rank function based on "Average" column and working fine. But I need the rank based on the "result" which ignore the averages of "fail" sting in Result column. I need the result in "Rank" column as below: Student name sub1 sub2 sub3 Result Average Rank A 36 54 78 PASS 56.00 2 B 66 25 54 FAIL 48.33 N/A C 45 36 65 PASS 48.67 3 D 12 45 45 FAIL 34.00 N/A E 78 78 54 PASS 70.00 1 Here, the rank function ingnore the averages of fail students and rank will calculate on only pass students. Please suggest me in this regard. Narendar |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
There are probably better ways than this, but I'd create an additional column
(between Average and Rank on your example) which works on the basis that if the result is "Pass", then return the average score, else return "", and run the rank from that column. You could always hide that column for the purposes of neatness. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank You Markytee... Good idea.
Cant we frame formula for this? "Markytee" wrote: There are probably better ways than this, but I'd create an additional column (between Average and Rank on your example) which works on the basis that if the result is "Pass", then return the average score, else return "", and run the rank from that column. You could always hide that column for the purposes of neatness. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
As the result is based on average marks..the below formula will work for the
example/scenario mentioned... =IF(E2="Pass",RANK(F2,F$2:F$6,0),"N/A") If this post helps click Yes --------------- Jacob Skaria "Narendra Boga" wrote: Hi All, I have a trouble with Rank() function. I have written normal rank function based on "Average" column and working fine. But I need the rank based on the "result" which ignore the averages of "fail" sting in Result column. I need the result in "Rank" column as below: Student name sub1 sub2 sub3 Result Average Rank A 36 54 78 PASS 56.00 2 B 66 25 54 FAIL 48.33 N/A C 45 36 65 PASS 48.67 3 D 12 45 45 FAIL 34.00 N/A E 78 78 54 PASS 70.00 1 Here, the rank function ingnore the averages of fail students and rank will calculate on only pass students. Please suggest me in this regard. Narendar |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear Jacob,
Thank You for the formula. This formula is working for this example only. I have given only some students data. In fact, I have to assign rank for more than 100 students in each class. I need only one best formula that change the rank when the marks change and as well as result. "Jacob Skaria" wrote: As the result is based on average marks..the below formula will work for the example/scenario mentioned... =IF(E2="Pass",RANK(F2,F$2:F$6,0),"N/A") If this post helps click Yes --------------- Jacob Skaria "Narendra Boga" wrote: Hi All, I have a trouble with Rank() function. I have written normal rank function based on "Average" column and working fine. But I need the rank based on the "result" which ignore the averages of "fail" sting in Result column. I need the result in "Rank" column as below: Student name sub1 sub2 sub3 Result Average Rank A 36 54 78 PASS 56.00 2 B 66 25 54 FAIL 48.33 N/A C 45 36 65 PASS 48.67 3 D 12 45 45 FAIL 34.00 N/A E 78 78 54 PASS 70.00 1 Here, the rank function ingnore the averages of fail students and rank will calculate on only pass students. Please suggest me in this regard. Narendar |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You have made the assumption that the critiera for PASS or FAIL is
just the average. That might very well be true, but if the criteria for PASS is "to have at least 30 on each of sub1, sub2, and sub3" and then the average of a student who has FAILed does not necessarily be lower than all students that have PASSed. In that case the proposed formula will give the wrong result. It is always difficult when the problem is not cleary stated. Lars-Åke On Sun, 22 Nov 2009 00:43:02 -0800, Jacob Skaria wrote: As the result is based on average marks..the below formula will work for the example/scenario mentioned... =IF(E2="Pass",RANK(F2,F$2:F$6,0),"N/A") If this post helps click Yes --------------- Jacob Skaria "Narendra Boga" wrote: Hi All, I have a trouble with Rank() function. I have written normal rank function based on "Average" column and working fine. But I need the rank based on the "result" which ignore the averages of "fail" sting in Result column. I need the result in "Rank" column as below: Student name sub1 sub2 sub3 Result Average Rank A 36 54 78 PASS 56.00 2 B 66 25 54 FAIL 48.33 N/A C 45 36 65 PASS 48.67 3 D 12 45 45 FAIL 34.00 N/A E 78 78 54 PASS 70.00 1 Here, the rank function ingnore the averages of fail students and rank will calculate on only pass students. Please suggest me in this regard. Narendar |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rank based on 2 categories | Excel Discussion (Misc queries) | |||
moving average & rank | Excel Discussion (Misc queries) | |||
Average values for a given rank | Excel Discussion (Misc queries) | |||
vlookup based on random result returns incorrect result | Excel Worksheet Functions | |||
Rank items, select one start date, have remaining dates follow based on rank | Excel Discussion (Misc queries) |