Trying to Convert MIN formula to SMALL to find second smallest

slam

Well-known Member
Joined
Sep 16, 2002
Messages
793
Per the title, I'm trying to convert this array formula to find the second smallest value:

=IF(L2=0,"NEVER",MIN(IF($B$4:$B$403=H2,$A$4:$A$403)))

I haven't had any success trying to fit in the SMALL and ,2. Any help would be greatly appreciated. Thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

63falcondude

Well-known Member
Joined
Jan 15, 2016
Messages
3,572
Try

=IF(L2=0,"NEVER",SMALL(IF($B$4:$B$403=H2,$A$4:$A$403),2)) Ctrl Shift Enter
 
Last edited:

slam

Well-known Member
Joined
Sep 16, 2002
Messages
793
Try

=IF(L2=0,"NEVER",SMALL(IF($B$4:$B$403=H2,$A$4:$A$403),2)) Ctrl Shift Enter

Hmm, that's exactly what I tried.... and now it works of course. Maybe I forgot the Ctrl Shift Enter, but I didn't think so. Thank you anyway!
 

slam

Well-known Member
Joined
Sep 16, 2002
Messages
793
Actually, a follow up question if I may. If there is no second smallest, i.e. there is only one value meeting the criteria, can I make it not error and display a blank instead?

Thanks
 

63falcondude

Well-known Member
Joined
Jan 15, 2016
Messages
3,572
Actually, a follow up question if I may. If there is no second smallest, i.e. there is only one value meeting the criteria, can I make it not error and display a blank instead?

Thanks

How about using IFERROR?

Formula would become =IFERROR(IF(L2=0,"NEVER",SMALL(IF($B$4:$B$403=H2,$A$4:$A$403),2)),"") Ctrl Shift Enter
 

Watch MrExcel Video

Forum statistics

Threads
1,130,045
Messages
5,639,744
Members
417,108
Latest member
Thein Than

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top