Ignore blanks when calculating smallest value

nightracer

Board Regular
Joined
May 17, 2004
Messages
147
Office Version
  1. 365
Hi, I have a column that brings in results via formula from other locations in the workbook, so if there is nothing to return it gives "" (blank)
I then need to find the smallest value in this column, but because of the blanks it is returning 0 (zero).
Is there a way to get the smallest non-zero value?

For example - column A:
23
17
(Blank)
46
91
(Blank)
11
103
(Blank)
(Blank)

Then i'm hoping to get to small(a:a,1) = 11
At the moment it is returning 0

Any help appreciated
Many thanks
N
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Perhaps
Excel Formula:
=aggregate(15,6,(a1:a100)/(a1:a100<>""),1)
 
Upvote 0
Hi there...

Another option could be... Not sure what version of Excel you are using though so might not work...

Excel Formula:
=SMALL(IF((A:A<>0)*(A:A<>""), A:A), 1)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Then i'm hoping to get to small(a:a,1) = 11
At the moment it is returning 0
In that case the blank cells are not blank & they do not contain "" as small will ignore them, they almost certainly contain 0
 
Upvote 0
Many thanks for the replies, as Fluff suggests it looks like one of the cells has returned a 0 which was throwing things out.
Appreciate all the help.

Thanks again
N
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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