×
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

Max Min
2

Max Min

Max Min

(OP)
Hi,

I have the following list:

Event    Signed VM
------------------
443080    48.8
444084    47.5
512164    505.7
513164    503.3
514164    500.6
522167    -428.0
523167    -429.3
524167    -430.8
532164    348.4
533164    326.5

I can find out easily max and min of the above list with max/min functions, as follows:

Max.    505.7
Min.    -430.8

But, I would like to determine which events cause max or min condition? So, I am looking for the following events:

Event related to Max.     512164
Event related to Min.    524167

I am looking for an excel command (function). I know that I can make a VB macro for this purpose, but I think that there is way to perform this task easily. In order to use vlookup, I need to have second column first and this is not my case.

I appreciate to know if you know how to determine these events easily.

Regards,
A.A.Y.







I would like to do the following process:

 

RE: Max Min

i use a dumb approach ... in the next column use an if to compare the row value to the maximum, return the row value if true, and blank if false (and turn off zero values, under options)

RE: Max Min

Using named ranges for Events and Values

Min: =INDEX(event,MATCH(MIN(value),value,0),1)

Max: =INDEX(event,MATCH(MAX(value),value,0),1)

 

RE: Max Min

Here your numbers (I have moved the first column to 2th and the 2th to first)

          B        C
2       48.8    443080
3       47.5    444084
4      505.7    512164
5      503.3    513164
6      500.6    514164
7       -428    522167
8     -429.3    523167
9     -430.8    524167
10     348.4    532164
11      26.5    533164

In cell B13 there is MIN(B2:B11)
To get the value corrispondig to min:
=VLOOKUP(B13;B2:C11;2;FALSE)

Onda

RE: Max Min

(OP)
Thank you for all replies. I think that "match" command proposed by MintJulep is the best match for me. It works fine and it is short and easy.

A.A.Y.

RE: Max Min

And with the sort, I often create a single column that I call NDX and have the numbers 1, 2, 3, ... n.  by using the preceding cell + 1 and then convert to real numbers by special paste - value.  After they are sorted, the NDX column can be used to put them back into their original sequence if necessary.

Dik

RE: Max Min

Dik:

When working with ORACLE and/or SQL, I do the same thing so that the original order of input data is always preserved -- it is good to be able to go back and forth all the time  ...

http://www.engineering-4e.com

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