+ Reply to Thread
Results 1 to 4 of 4

MAX function + condition

  1. #1
    Registered User
    Join Date
    11-02-2017
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    51

    Question MAX function + condition

    Hi again my friends!
    I have a problem using MAX function combined with VLOOKUP... i attached the file here
    I want the result to be "B" because 7 is the max from the numbers... and another result i want to be "C" cause those both letters go in 7...
    hope you understand what i mean :D
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: MAX function + condition

    Try

    for column

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For row

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed 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.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: MAX function + condition

    1.

    =INDEX($B$1:$E$1,MAX(IF($B$2:$E$5=MAX($B$2:$E$5),COLUMN($B$2:$E$5)))-1)

    2.

    =INDEX($A$2:$A$5,MAX(IF($B$2:$E$5=MAX($B$2:$E$5),ROW($B$2:$E$5)))-1)

    Enter with Ctrl+Shift+Enter.

  4. #4
    Registered User
    Join Date
    11-02-2017
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    51

    Re: MAX function + condition

    Thanks a lot guys! From both worked!
    Have a nice day!

+ 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] Sum function with a condition
    By luizmachado in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2016, 03:49 PM
  2. How to if function for between condition
    By Terressa in forum Excel General
    Replies: 3
    Last Post: 07-01-2015, 05:55 AM
  3. If condition function need help
    By kishoremcp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-14-2013, 07:32 AM
  4. [SOLVED] Can I add an 'or' condition to the COUNTIF function? If not, what other function can I use
    By newbie0101 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2012, 01:41 AM
  5. If function 10 condition
    By Sam.K in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-01-2008, 11:20 PM
  6. IF function condition
    By Tudor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2007, 09:54 AM
  7. [SOLVED] max function with condition
    By shaji in forum Excel General
    Replies: 4
    Last Post: 07-10-2006, 12:19 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