Link to home
Start Free TrialLog in
Avatar of Ian Bell
Ian BellFlag for United Kingdom of Great Britain and Northern Ireland

asked on

modify formula to find second smallest number

Hi,
I would like someone to modify the below formula to arrive at the second smallest number.

MIN(IF($EH$14:$EH$105462=EH15,$DH$14:$DH$105462)))

Many thanks

Ian
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Try using the small function where 2 is the second smallest. This looks at the data in A1 and B1and if they are equal it returns the second smallest from A1:A6, otherwise it returns 99.

=IF(A1=B1,SMALL(A1:A6,2),99)
ASKER CERTIFIED SOLUTION
Avatar of Ejgil Hedegaard
Ejgil Hedegaard
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ian Bell

ASKER

Thanks to Martin and Ejgil for your contribution.
Your solution Ejgil is perfect
Many thanks
Ian