+ Reply to Thread
Results 1 to 6 of 6

Location of the cells with maximum and minimum values and the text in the cell next to it

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Zagreb, Croatia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Location of the cells with maximum and minimum values and the text in the cell next to it

    Dear all,

    From about 30000 values I have to find cells with min and max value (C).
    This min and max value are dependent on other two numbers (A and B) which are located in different columns
    (but same rows as this min or max value) and which are also important to me.
    My problem - I would like to show this two numbers (which causes min and max value of result) in separate cells.
    Simple example in attachment.

    Thank you and best regards!

    Martin
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Location of the cells with maximum and minimum values and the text in the cell next to

    See the sheet.

    Basically, it searches for the max/min value in C, then moves over using =OFFSET

    Here are the formulas:

    Please Login or Register  to view this content.
    Will this work for what you are trying to do?
    Attached Files Attached Files

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Location of the cells with maximum and minimum values and the text in the cell next to

    Try

    In I2 and copy to j2

    =INDEX(A$2:A$11,MATCH($E$2,$C$2:$C$11,0))

    In I3 and copy to J3

    =INDEX(A$2:A$11,MATCH($f$2,$C$2:$C$11,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Location of the cells with maximum and minimum values and the text in the cell next to

    for the minimum from C use this
    =INDEX($A$1:$C$11,MATCH(MIN($C$2:$C$11),$C$1:$C$11,0),MATCH(I$1,$A$1:$C$1,0))
    for the max, use this
    =INDEX($A$1:$C$11,MATCH(MAX($C$2:$C$11),$C$1:$C$11,0),MATCH(I$1,$A$1:$C$1,0))
    they can both be copied over for B
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-18-2012
    Location
    Zagreb, Croatia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Location of the cells with maximum and minimum values and the text in the cell next to

    Dear all,

    the problem is solved.
    Thank you!
    I appreciate it very much!

    I used Fotis1991 solution, because it is the only solution I understood relatively quickly.
    In other solutions I couldn't understand some things, but it is related to my poor excel knowledge
    -but I will try to find it out.

    Best regards

    Martin

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Location of the cells with maximum and minimum values and the text in the cell next to

    You are welcome.

    Thanks for the reb*

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1