how to do a rank and iserror together

saurabh_sharma

New Member
Joined
Apr 25, 2002
Messages
10
hi
I wish to use the iserror function so that a blank cell shows up instead of showing a #value! error. This is to be used along with a rank function
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
=ISERROR will trap *any* error, which may be too blase....

=ERROR.TYPE will allow you to specify which error to look for specifically, with #VALUE returning a result of 3

so =IF(ERROR.TYPE(your formula)=3,your blank,your formula)
 
Upvote 0
thanks for the help

On 2002-04-26 19:44, Chris Davison wrote:
=ISERROR will trap *any* error, which may be too blase....

=ERROR.TYPE will allow you to specify which error to look for specifically, with #VALUE returning a result of 3

so =IF(ERROR.TYPE(your formula)=3,your blank,your formula)
 
Upvote 0
Given that A1:A7 houses the sample below:

{3;
2;
20;
2;
"";
9;
10}

where "" stands for a blank (empty cell),

the following RANK formula will ignore the blank:

in B1 enter and copy down:

=IF(A1,RANK(A1,$A$1:$A$7),"")

If your blanks are formula generated blanks and/or true blanks, use:

=IF(ISNUMBER(A1),RANK(A1,$A$1:$A$7),"")

Aladin
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,244
Members
448,879
Latest member
VanGirl

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