SMALL function not counting blanks as zero

Suefenton

New Member
Joined
Jul 23, 2012
Messages
2
I want to find the two smallest numbers out of 12 cells and if there is a blank I want it to count it as a zero.

Eg: 25 20 22 25 .. 20 25 25 18 19 18 22 (where .. Is a blank but I must not put a zero in)

I want to pick the two lowest numbers as 0 and 18 in two separate columns.

I have one formula as =SMALL(A1:A12,1). It picks 18. I want 0.
i have other formula as =SMALL(A1:A12,2). It picks 18, correct
 
Try this array formula - confirmed with shift+ctrl+enter, not just enter.
Code:
=SMALL(IF(ISBLANK(A1:A12),0,A1:A12),1)
 
Upvote 0
Try this array formula - confirmed with shift+ctrl+enter, not just enter.
Code:
=SMALL(IF(ISBLANK(A1:A12),0,A1:A12),1)

This did it for me. Thanks so much. I had tried exactly that but didn't know about the shift Ctrl enter.
 
Upvote 0

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