+ Reply to Thread
Results 1 to 8 of 8

Finding maximum value in row, and give the column names in which these maximum values are

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    Giethoorn, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    6

    Finding maximum value in row, and give the column names in which these maximum values are

    Hi everyone,

    I am setting up a small new database. Each row is a person, with in each column a grade from 1-10. Each column represents a specific exam. I want for all these persons the exam names (which are in row 1) for which they have scored best.

    For instance

    Person # - Exam 1 - Exam 2 - Exam 3 - Best Exam
    Person 1 - 9 - 6 - 4 - Exam 1
    Person 2 - 4 - 6 - 6 - Exam2, Exam3

    I hope I am clear in defining my problem. I have tried Lookup, but it sometimes gave me wrong results. I could not figure out where I went wrong.

  2. #2
    Registered User
    Join Date
    04-08-2013
    Location
    Giethoorn, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Finding maximum value in row, and give the column names in which these maximum values

    So, in my worksheet, the exam grades start in the 4th column.

    Right now, for person 2 I have the next formula: =LOOKUP(O3;D3:N3;$D$1:$N$1)
    With 03 being the maximum value of the grades.
    With D3:N3 being all the grades that that person2 had (11 grades in total)
    D1:N1 consists of the exam names.

    When I use this, I sometimes got erroneous results. And even if it works, I will not get the result that I actually want: If a person gets the same grade for two exams, I want the names of both exams.

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Finding maximum value in row, and give the column names in which these maximum values

    Hi,

    Welcome to the Forum.

    You would get better help if you attach a small sample workbook with enough data to demonstrate your requirement. Make sure your desired results are shown, mock them up manually if necessary. Remember to desensitize the file by removing all confidential information before upload!

    See the following URL for help on how to upload a file.
    http://www.excelforum.com/members/da...ch-a-file.html

  4. #4
    Registered User
    Join Date
    04-08-2013
    Location
    Giethoorn, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Finding maximum value in row, and give the column names in which these maximum values

    excel.xlsx

    Here's an example. I did manually the result I want to get.
    Hope this helps

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Finding maximum value in row, and give the column names in which these maximum values

    What if someone gets the same grade for 4 or 5 EXAMS? Do you want all 5 of them to be shown in one cell? Or is there any maximum for this? say only top 2 or top 3.

  6. #6
    Registered User
    Join Date
    04-08-2013
    Location
    Giethoorn, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Finding maximum value in row, and give the column names in which these maximum values

    All of them is my focus at the moment.

    And if it is very simple to explain the difference with making a top-3, then I would not mind to learn how that can be accomplished as well

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Finding maximum value in row, and give the column names in which these maximum values

    Hi,

    See the attached file. I have used the following array formula - to be confirmed by pressing CTRL+SHIFT+ENTER

    Please Login or Register  to view this content.
    This will flag the top 3 Exams and show the output in column 'O'
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Finding maximum value in row, and give the column names in which these maximum values

    Maybe so fit?
    Attached Files Attached Files

+ 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] Finding the minimum value of maximum values from multiple, changing worksheets
    By kwhelanne in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2014, 05:17 AM
  2. [SOLVED] Finding minimum and maximum values based on multiple criteria and filtered data
    By jndreece in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2014, 10:42 AM
  3. [SOLVED] Looking for the __ maximum values in a column
    By tucanj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2013, 02:00 AM
  4. Maximum value within a 10 minutes timeframe (conditional maximum)
    By Jimmy T in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2011, 09:58 AM
  5. finding the minimum value in a column that comes after the maximum value
    By rantarctica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2008, 04:42 PM
  6. Finding Maximum value while excluding some values
    By tx12345 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-04-2006, 05:10 PM
  7. Replies: 4
    Last Post: 12-01-2005, 12:00 PM

Tags for this Thread

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