×
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!
  • Students Click Here

*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

Jobs

Reference to adjacent cell of maximum

Reference to adjacent cell of maximum

Reference to adjacent cell of maximum

(OP)
I have a column of data from which I can simply find the maximum value using the MAX function. How can I find out where that maximum value occurs in the column so I can reference that cell or more importantly the cell adjacent to that maximum (in the same row) some where later?

RE: Reference to adjacent cell of maximum

You need to use the match function.

Try something like MATCH(MAX(A1:A9),A1:A9,0) This will return the position in the array of the max value in the range a1:a9. The 0 at the end of the function ensures that you only get a response if an exact match is found.

Hope that helps

RE: Reference to adjacent cell of maximum

(OP)
Thanks ab,
I've managed to do this now by using the MATCH, ADDRESS, and INDIRECT functions to return the value of a cell that is in the same row as the maximum of another column.

RE: Reference to adjacent cell of maximum

Don't forget the INDEX and OFFSET functions here:
as in INDEX(C1:C9, MATCH(MAX(A1:A9),A1:A9,0))

Cheers,
Joerd

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

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!


Resources