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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
=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,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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