Maximum value

  • Thread starter Thread starter Masha
  • Start date Start date
M

Masha

hei,
I have a table like:
Fx Fy Fz
1 -1975 -3211 -1321
2 781 -5419 1175
3 1431 1270 -4184
4 -8191 6251 -6000

I need to have an answer for the maximum absolut value with keeping the
sight if it is negative.
Like:
Max (+/-) -8191 6251 -6000

is it possible?
 
Masha said:
I need to have an answer for the maximum absolut value with
keeping the [sign] if it is negative.

There might be something more clever, but try:

=IF(ABS(MIN(A1:A4)) > MAX(A1:A4), MIN(A1:A4), MAX(A1:A4))

Note: If both the min and max are the same magnitude (e.g. -6000 and 6000),
that formula returns the positive number. If you would prefer the negative
number, change ">" to ">=".


----- original message -----
 
Another way

(array entered.)
=INDEX(H1:H100,MIN(IF(ABS(H1:H100)=MAX(ABS(H1:H100)),ROW(H1:H100))))

If this post helps click Yes
 
Back
Top