+ Reply to Thread
Results 1 to 16 of 16

find cell with maximum value that meets a certain criteria

  1. #1
    Registered User
    Join Date
    10-13-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    52

    find cell with maximum value that meets a certain criteria

    hi all excel gurus,

    i am looking for a formula to find a cell that has the highest value after meeting a certain criteria. in the attached, i need to find the cell in column B that has the highest value in column F after meeting criteria in column E.

    As an example, in rows 3-4, there are two values in column F under the same criteria in column E3-E4. so i want my formula to return 35FINQ40 as a the output (form column B) base on the highest value in column F (3,067.57) for segment FIN8G in column E.

    Please help

    thank you

    S
    Attached Files Attached Files
    Last edited by shrijan; 08-12-2015 at 01:13 AM. Reason: forgot to attach spread sheet

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: find cell with maximum value that meets a certain criteria

    Hi,

    I guess you have forgotten to attach the file..

    Please attach it..
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    10-13-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: find cell with maximum value that meets a certain criteria

    thank you. just attached.

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: find cell with maximum value that meets a certain criteria

    Maybe something like this?

    =INDEX($B$3:$B$10,MATCH(MAX(IF(I3=$E$3:$E$10,$F$3:$F$10,"")),$F$3:$F$10,0))

    See the file attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-13-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: find cell with maximum value that meets a certain criteria

    sorry. did not work. i throws out values.

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: find cell with maximum value that meets a certain criteria

    I'v attached the file.. Did you see that?

  7. #7
    Registered User
    Join Date
    10-13-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: find cell with maximum value that meets a certain criteria

    i did but when i used the formula to a larger data set, it is throwing errors.

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: find cell with maximum value that meets a certain criteria

    It seems you are messing up with Cell References..

    Have you checked that?

  9. #9
    Registered User
    Join Date
    10-13-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: find cell with maximum value that meets a certain criteria

    i have attached the issue.
    Attached Files Attached Files

  10. #10
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: find cell with maximum value that meets a certain criteria

    The formula is right.. However, I forgot to tell you one thing..

    You have to confirm the formula by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    My Fault..

  11. #11
    Registered User
    Join Date
    10-13-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: find cell with maximum value that meets a certain criteria

    worked. thank you.

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: find cell with maximum value that meets a certain criteria

    Quote Originally Posted by NeedForExcel View Post
    =INDEX($B$3:$B$10,MATCH(MAX(IF(I3=$E$3:$E$10,$F$3:$F$10,"")),$F$3:$F$10,0))
    This formula is logically flawed, and may not always give correct results.

    For example, using the file you attached in post #4, change the value in cell F3 to 1332.82929 (so that it is identical to that in cell F6). The formula in cell J5 now returns 35FINQ40, though this BU is not even associated with FIN9G.

    You need to repeat the conditional statement within MATCH's lookup_array also, i.e.:

    =INDEX($B$3:$B$10,MATCH(MAX(IF(I5=$E$3:$E$10,$F$3:$F$10)),IF(I5=$E$3:$E$10,$F$3:$F$10),0))

    which now gives the correct result of 35FINA58.

    Regards
    Click * below if this answer helped

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

  13. #13
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: find cell with maximum value that meets a certain criteria

    You are right XOR LX.

    Thank you for the input.

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: find cell with maximum value that meets a certain criteria

    Quote Originally Posted by NeedForExcel View Post
    You are right XOR LX.

    Thank you for the input.
    You're welcome!

  15. #15
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: find cell with maximum value that meets a certain criteria

    Genius formula
    God bless you Mister "XOR LX"

  16. #16
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: find cell with maximum value that meets a certain criteria

    Quote Originally Posted by shimaa01234 View Post
    Genius formula
    God bless you Mister "XOR LX"
    You're welcome!

+ 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. [SOLVED] need to find MAX value IF meets criteria
    By rossg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-03-2013, 10:58 PM
  2. Find nearest available date that meets criteria
    By scottylad2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2013, 03:17 PM
  3. [SOLVED] find last value in a column if it meets a certain criteria
    By chiidzzz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2012, 02:19 PM
  4. Find the last in a list that meets the certain criteria
    By csmall86 in forum Excel General
    Replies: 1
    Last Post: 10-31-2010, 12:27 PM
  5. Find cell that meets criteria
    By dudedude in forum Excel General
    Replies: 5
    Last Post: 07-08-2010, 08:31 AM
  6. [SOLVED] How do I find the last row which meets criteria??
    By colwyn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2009, 12:34 PM
  7. How can I find last row and score which meets criteria?
    By colwyn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2009, 07:24 AM
  8. [SOLVED] In an array, I need to find the row # that meets 2 criteria
    By Space Elf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2006, 12:00 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