Closest to zero in Excel
BOGI35
-
michel_m Posted messages 18903 Registration date Status Contributor Last intervention -
michel_m Posted messages 18903 Registration date Status Contributor Last intervention -
Hello,
In Excel, you can use the following formula to find the value closest to zero in a matrix with 6000 rows (1 column):
Thank you
BOGI35
In Excel, you can use the following formula to find the value closest to zero in a matrix with 6000 rows (1 column):
=INDEX(A:A, MATCH(MIN(ABS(A1:A6000)), ABS(A1:A6000), 0)) Thank you
BOGI35
Configuration: Windows XP Internet Explorer 7.0
2 answers
Hello
use the MIN function
for example in a cell you write: =MIN(A16:A21) to get the minimum value from the range A16:A21
see you later
use the MIN function
for example in a cell you write: =MIN(A16:A21) to get the minimum value from the range A16:A21
see you later
First of all, thank you for your response,
I tried this function, however, in my matrix table, I have values that are negative (ranging from -3,000 to +3,000). What I can't seem to do is display in a cell the value closest to zero. The "Min" function gives me the smallest value (which is not necessarily the closest to zero).
BOGI35
I tried this function, however, in my matrix table, I have values that are negative (ranging from -3,000 to +3,000). What I can't seem to do is display in a cell the value closest to zero. The "Min" function gives me the smallest value (which is not necessarily the closest to zero).
BOGI35
Hello
I didn't know there were negative values
use the following array function:
for example, in a cell you type: =MIN(ABS(A16:A21)) to get the minimum value of the range A16:A21
you need to validate the formula by pressing Ctrl Shift and Enter
the formula will appear in the form: {=MIN(ABS(A16:A21))}
see you soon
I didn't know there were negative values
use the following array function:
for example, in a cell you type: =MIN(ABS(A16:A21)) to get the minimum value of the range A16:A21
you need to validate the formula by pressing Ctrl Shift and Enter
the formula will appear in the form: {=MIN(ABS(A16:A21))}
see you soon
I just got back from the meeting, I will try your formula tomorrow morning.
THANK YOU AGAIN
BOGI35