Question : Find Number Closest to Zero in Excel

I have a column of positive AND negative numbers.  I need to find the smallest number / number closest to zero.

Example:
2.5
0.5
-0.25
-1.0

In this case the answer would be -0.25.

How can I find this using Excel functions/formulas?

Answer : Find Number Closest to Zero in Excel

you could use:

=INDEX($A$1:$A$4,MATCH(MIN(ABS(A1:A4)),ABS(A1:A4),0))

assuming your data in A1:A4. This is an array formula and needs to be entered with Ctrl+Shift+Enter not just Enter.

Random Solutions  
 
programming4us programming4us