List five smallest numbers, excluding zeros
Muhammad Saleem asks:
I a column with over 400 entries. Most of them are 0s. I would like to list the 5 smallest numbers excluding 0s. What is the best possible formula?
Answer:
Array formula in cell C1:
=SMALL(IF($A$1:$A$400<>0, $A$1:$A$400, ""), ROW(A1))
How to create an array formula
- Select cell C1
- Type array formula
- Press and hold Ctrl + Shift
- Press Enter once
- Release all keys
How to copy array formula
- Select cell C1
- Copy (Ctrl + c)
- Select cell C2:C5
- Paste (Ctrl + v)
Download excel 97-2003 *.xls file
list 5 smallest values excluding zeros.xls
What formula would you use?
Related posts:
Excel: Find the smallest value in a list but bigger than 10.
Highlight smallest duplicate value in a column using conditional formatting in excel
Excel: Find the smallest difference between the two closest values

















