RussChilds

Active Member
Joined
Jun 8, 2007
Messages
267
Hi All,

I'm using the RANK formula:

=RANK(BL2,$BL$2:$BL$186,0)

Some students do not have a grade so their cell is blank. How do I get the formula to ignore the blank cells?

Many thanks,
Russ
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
If I'm understanding this correctly, I think you can just replace what you have with:

=IFNA(Rank(BL2,$BL$2:$BL$186,0),"")

This will leave a blank space where the grade is blank.

If you want to leave something else there, you can just add it between the quotes like so:

=IFNA(Rank(BL2,$BL$2:$BL$186,0),"No Grade")
 
Last edited:
Upvote 0
Hi hotabae,

Thanks for the reply. Sadly it doesn't work. For example cell BL2 is just empty and does not have a #N/A.

Of the cells BL2 to BL186 only 12 pupils do not have a grade and their cell is empty

Hope that helps?

Russ
 
Upvote 0
The RANK function ignores strings and empty cells for the purpose of displaying the rank.
Students without grade and with cells marked as empty will not be ranked (and the formula will show #N/A. Check hotabae formula).
However if you typed space instead of leaving the cell empty, students without grade will not be ranked either but the RANK function will show #VALUE !.
In order to eliminate the #VALUE ! the IFNA has to be replaced by IFERROR.
 
Upvote 0
If you're still having trouble after reading through Ricksp's #4 , could you post a sample of your data?

Something like this (how I initially interpreted your data):

AB
1RANKGRADE
215
3#N/A
423
532
641

<colgroup><col width="64" style="width:48pt" span="3"> </colgroup><tbody>
</tbody>

A2 Formula: =RANK(B2,$B$2:$B$6,0)
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,141
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top