×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Max absolute value comand??
3

Max absolute value comand??

Max absolute value comand??

(OP)
Is there a comand to get the Max absolute value for a group of numbers.  ie

1, 6, -14, 7      = 14
Replies continue below

Recommended for you

RE: Max absolute value comand??

Type =MAX(ABS(A1:A4)) and press Ctrl+Enter (enters it as an array formula). The formula now looks like:
{=MAX(ABS(A1:A4))}

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Max absolute value comand??

(OP)
joerd:

Thanks, but the problem is that the values arn't in the same column or row.

RE: Max absolute value comand??

Just separate the values with comma's:

=MAX(ABS(A1),ABS(B4),ABS(E19),....)

jproj

RE: Max absolute value comand??

Unfortunately, you cannot use =MAX(ABS(A1,D9,F7,E12)) and select the cells holding the Ctrl key, what you would normally do. I see nothing quicker than =MAX(ABS(A1),ABS(D9),ABS(F7),ABS(E12)) unless you venture into a VBA function, which will look something like:

Function MaxAbs(ParamArray R() As Variant)
Dim C As Variant, V As Double

    V = 0
    For Each C In R
        If Abs(C.Value) > V Then V = Abs(C.Value)
    Next C
    MaxAbs = V
End Function

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Max absolute value comand??

Or make a table of the desired values....

RE: Max absolute value comand??

(OP)
Thanks for all the input, I was just hoping there would be a simple comand.  Thanks.

RE: Max absolute value comand??

3
Try combining Min and Max;

=MAX(MAX(A1:A4),-MIN(A1:A4))

RE: Max absolute value comand??

I like needahandle's solution.  Nicely done!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close