RANK - how to exclude errors?

servcoor

New Member
Joined
Jan 6, 2003
Messages
45
Any ideas? I have a column of data several rows deep. Some cells must display #DIV/0! error. I need to rank the values in the column but RANK does not work when errors are included in the range. Can I enter a formula with RANK to exclude errors? Here are seven rows of my data, N9:N15. Any suggestions are greatly appreciated!


35.00
#DIV/0!
67.20
49.04
47.98
#DIV/0!
42.81
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Set your range to the appropriate size and use this code. I know it delete all errors and not just #DIV/0! but I thought this is what you'd want.

Set rng = Range("I1:I20")
For Each c In rng
If IsError(c.Value) Then c.Delete
Next
 
Upvote 0
servcoor said:
Any ideas? I have a column of data several rows deep. Some cells must display #DIV/0! error. I need to rank the values in the column but RANK does not work when errors are included in the range. Can I enter a formula with RANK to exclude errors? Here are seven rows of my data, N9:N15. Any suggestions are greatly appreciated!


35.00
#DIV/0!
67.20
49.04
47.98
#DIV/0!
42.81
Book12
MNOPQ
9355
10#DIV/0! 
1167.21
1249.042
1347.983
14#DIV/0! 
1542.814
16
Sheet1


O9, copied down:

=IF(ISNUMBER(N9),1+COUNTIF($N$9:$N$15,">"&N9),"")
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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