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
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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

Forum statistics

Threads
1,221,443
Messages
6,159,907
Members
451,601
Latest member
terrynelson55

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