Returning 2nd smallest value in a range

R

Rachel7

I'm using the SMALL formula to return 2nd smallest value in a range of
cells. Is there a way of the formula excluding empty cells, zero value cells
& cells with same values in?
Thanks in advance
 
P

Pete_UK

Ah, I see you have posted this several times. You have a suggestion at
one of your other threads.

Pete
 
H

HARSHAWARDHAN. S .SHASTRI

Hi Rachel,

You can try following formula,

=SMALL(A1:A42,1+FREQUENCY(A1:A42,MIN(A1:A42)))


H S Shastri


=====================================================
 
R

Rachel7

That works brilliantly...
Thanks.!!

HARSHAWARDHAN. S .SHASTRI said:
Hi Rachel,

You can try following formula,

=SMALL(A1:A42,1+FREQUENCY(A1:A42,MIN(A1:A42)))


H S Shastri


=====================================================
 
R

Rachel7

I can work around the zero's & ensure they're not in the array. Mainly it's
the multiple entries that cause a problem. I need to retrieve
1st,2nd,3rd,4th best values & I wouldn't need to see the duplicate values.
Thanks everyone...
 
H

HARSHAWARDHAN. S .SHASTRI

Hi Rachel

Pl note that this formula will give you only 2nd small value.This can not
give you 3 rd and 4th small value.

H S Shastri


==================================================
 
A

Ashish Mathur

Hi Rachel,

Suppose the range of numbers is as follows in range D5:D11

1
1
0

5
6
1

In cell E5, enter the following formula
=IF(OR(COUNTIF($D$5:$D5,D5)<>1,COUNTBLANK(D5)=1),1000,1) and copy down till
E11

Now you can array enter (Ctrl+Shift+Enter) the following formula
=SMALL(IF(($E$5:$E$11=1),D5:D11),2)


--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

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