hi guys,
i am trying to find the smallest three values in a column but this column has #DIV/0! and whatever formula i type in i get #DIV/0!
. min() and small() dont work. can anyone help?
hi guys,
i am trying to find the smallest three values in a column but this column has #DIV/0! and whatever formula i type in i get #DIV/0!
. min() and small() dont work. can anyone help?
Hi,
If you only have Excel 2003 then wrap your formula in an =IF(ISERROR()) formula. i.e
Formula:
=IF(ISERROR(your_formula),"",yourformula)
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
#DIV/0!
means just that - you are trying to divide something by 0. So you need to structure that formula to catch that.
If B2 is blank of 0, then A1/B1 will result in #DIV/0!
but youi could error trap with...
=if(iserror(A1/B1),"",A1/B1)
or
=IF(OR(B1=0,B1=""),"",A1/B1)
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
depends if you have no 0 values than you could use this array formula filled down
=SMALL(IF(ISERROR(1/$A$1:$A$20),10^99,$A$1:$A$20),ROWS($A$1:A1))
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Try this...
Data Range
A B C 1 48 10 2 98 33 3 #DIV/0! 48 4 52 5 87 6 33 7 10 8 #DIV/0! 9 96 10 91 ------ ------
This array formula** entered in C1 and copied down:
=IF(COUNT(A$1:A$10)>=3,SMALL(IF(ISNUMBER(A$1:A$10),A$1:A$10),ROWS(C$1:C1)),"")
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
how about aggregate? Don't know if will work in '03
something like
=AGGREGATE(15,6,$A$1:$A$10,ROW(A1))
I think people forget the word "THANK YOU!!!!" Do you still know it???
There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "
Regards,
Vladimir
it wont ,wasn't introduced until 2010
thanks both. that's what i'm afraid of.
if just the OP could upgrade he can benefit from the new functions introduced by excel.
£199.99 for the sake of ctrl+shift+enter?
i only ugraded from 97 to 2007 because i got it free!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks