![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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 |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
=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)
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
#3 | |
|
New Member
Join Date: Apr 2002
Posts: 10
|
thanks for the help
Quote:
|
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|