Maximum Absolute value with same sign

Dear Experts,

Please guide me on one simple query.

I need to get Maximum of two Absolute values with same sign (-ve/+ve).
Please see enclosed snapshot.

Query
Almir's picture

Sign is good

It is +, but not shown - that is convention.

Useful's picture

Try this Array Formula

Hi

you may use this array formula (with Ctrl+Shift+Enter)

=IF(MAX(A1:B1)<MAX(ABS(A1:B1)),-MAX(ABS(A1:B1)),MAX(A1:B1))

have a nice day!

Vishesh's picture

Try this array formula. Set

Try this array formula. Set the range accordingly.

=MAX(IF($A$7:$A$10<0,$A7:$A10))

Maximum Absolute value with same sign

I DIDN'T GET YOUR POINT.

Vishesh's picture

This is an array formula...I

This is an array formula...I forgot to mention. Enter that formula and press Shift+Ctrl+Enter