Trying to Convert MIN formula to SMALL to find second smallest

slam

Well-known Member
Joined
Sep 16, 2002
Messages
867
Office Version
  1. 365
  2. 2019
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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try

=IF(L2=0,"NEVER",SMALL(IF($B$4:$B$403=H2,$A$4:$A$403),2)) Ctrl Shift Enter
 
Last edited:
Upvote 0
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!
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,205
Members
448,874
Latest member
Lancelots

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
Back
Top