+ Reply to Thread
Results 1 to 9 of 9

maximum and minimum with cell value

  1. #1
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    maximum and minimum with cell value

    hello guys,
    I know how to find maximum and minimum, but how could I write cell value with maximum and minimum value?
    I think more understandable will be to upload sample file
    thanks for any help!
    Attached Files Attached Files
    Last edited by miso.dca; 01-21-2018 at 04:40 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: maximum and minimum with cell value

    Try...

    K8 =MAX(IF($A$2:$A$14=K7,$E$2:$E$14))
    L8 =MIN(IF($A$2:$A$14=L7,$H$2:$H$14))

    IMPORTANT
    • This is an array formula
    • Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    • If entered correctly, the formula will be enclosed in {brackets}
    • Do not enter the {brackets} manually
    HTH
    Regards, Jeff

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: maximum and minimum with cell value

    Dear miso.dca

    Here is the macro that will render your desired output.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: maximum and minimum with cell value

    jeffreybrown - thx, but your solution (at least for me) doesnt work, the result is number and not cell from A column ... (or did i do something wrong? array formula was there)
    rcm - your solution works perfectly thanks

    anyway if anybody has formula (sorry I create this thread in bad forum) for my problem, just let me know

    if not, I will mark it tomorrow solved thanks guys

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: maximum and minimum with cell value

    Not sure if I'm missing something, but in your sample workbook you are looking to return 155 for the max of slivka and 175 as the min for jablko.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: maximum and minimum with cell value

    yes, that's correct, but I dont need to return "155" but "slivka"
    and your formula returns only "155" or am I missing something?

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: maximum and minimum with cell value

    Yes, sorry mis-read what you were asking...

    K7 =INDEX(A2:A14,MATCH(MAX(E2:E14),E2:E14,0))
    L7 =INDEX(A2:A14,MATCH(MIN(H2:H14),H2:H14,0))

    These are normal formulas. No need for CSE

  8. #8
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: maximum and minimum with cell value

    yeah! that's it thank you very much jeffreybrown
    I will HAVE to learn how to do such a tricky formulas I know very little from this area ... again, thank you

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: maximum and minimum with cell value

    You are very welcome and thanks for the rep.

    Here is a reference you might find useful.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Maximum and minimum values in a cell
    By KeenBfB in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-26-2016, 02:43 AM
  2. [SOLVED] Maximum/Minimum value from range and then from cell color
    By mughal1990 in forum Excel General
    Replies: 4
    Last Post: 04-19-2015, 02:45 AM
  3. [SOLVED] Getting Minimum and maximum level from a cell
    By Citi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-27-2014, 02:35 AM
  4. Replies: 4
    Last Post: 12-05-2011, 07:01 PM
  5. Getting Minimum and maximum level from a cell
    By a94andwi in forum Excel General
    Replies: 9
    Last Post: 03-20-2007, 09:01 AM
  6. How do I find the cell reference that contains the minimum or maximum
    By fadsnet in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2006, 11:55 PM
  7. Maximum and minimum cell value
    By sharkfoot in forum Excel General
    Replies: 3
    Last Post: 03-05-2006, 07:10 PM

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