Only Cells with positive answer to IF formula

D

Davidm

I have an IF formula in Column A that puts a number from another cell if
positive or
"" if negative. I want to put in say column B a formula that will bring all
the positive responses in order to the top of Column B, instead of just
spread out in A, is this possible or is their another solution
Regards David
 
G

Gary''s Student

=IF(ROWS($1:1)<=COUNTA($A$1:$A$500),INDEX($A$1:$A$500,SMALL(IF($A$1:$A$500<>"",ROW($A$1:$A$500)-MIN(ROW($A$1:$A$500))+1),ROWS($1:1))),"")

This is an array formula that must be inserted with:
CNTRL-SHFT-ENTER
rather than the
ENTER key


(from a Ron Coderre post)
 
D

Davidm

This works well is their anyway of having it so #NUM! doesnt appear in cells
after the numbers are in order

Thanks David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top