+ Reply to Thread
Results 1 to 24 of 24

Formula to return a highest score

  1. #1
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Formula to return a highest score

    Hello,

    I'd like to find a student's highest test score from a table which shows all the results every time a particular test has been taken. One student, for example, has taken the test four times this year and scored 450, 465, 455, and 460. Another student has taken the test twice and scored 470 and 480. What formula should I use to return 465 and 480 for these two students? Can I use MATCH and LARGE somehow? Thanks!

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Formula to return a highest score

    Please see if below formula works. Name of the students are in the column B and Marks are in column C.

    {=MAX(IF($B$3:$B$11=F3,$C$3:$C$11))}

  3. #3
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    Thanks for the reply. That's not working, unfortunately. What's the F3 doing in your formula? Thanks!

  4. #4
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Formula to return a highest score

    F3 should have the name of the student for whom you want to get the maximum marks. sorry forgot to mention this in the last post. Also find attached the file containing formula for your reference.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    name of students in B3 to B11, C3 to C11 are marks of studentname of student whose mark you are searching is in D3 then
    in E3 copy paste below
    =MAX(IF($B$3:$B$11=D3,$C$3:$C$11)) then hold control and shift together and then hit enter to make it array formula

    @excelfundoo u forgot to mention array confirmation of formula

    Or you could use
    copy paste below in E3 and simple enter
    =MAX(INDEX(($B$3:$B$11=$D$3)*($C$3:$C$11),))
    Change the cell references according to your data set
    Last edited by hemesh; 01-11-2016 at 05:06 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  6. #6
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    OK, thanks, ExcelFandoo, I get it. Though the way I need it to work is a bit different. I've amended your file to show you what I mean: I need to pick up the highest scores from one table and put them into another one. Thanks ever so much for your help.

    MaxIf.xlsx

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    I think in your data B and Month June should be November instead of June

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    try below in Column M
    =MAX(INDEX((Table1[Name]=[@Name])*(Table1[Marks]),))&"("&INDEX(Table1[Date],MATCH(J2&MAX((Table1[Name]=J2)*(Table1[Marks])),Table1[Name]&Table1[Marks],0))&")"

    Copy paste above in M2 then hold control and shift together and then hit enter

    Or
    =MAX(INDEX((Table1[Name]=[@Name])*(Table1[Marks]),))&"("&INDEX(Table1[Date],SUMPRODUCT(((Table1[Name]=J2)*(Table1[Marks])=MAX((Table1[Name]=J2)*(Table1[Marks])))*(ROW(Table1[Name])-1)))&")"

    copy paste above and hit enter
    Last edited by hemesh; 01-11-2016 at 05:33 AM.

  9. #9
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    Hello, yes, you're right about data B: Thanks!

    My version of excel (2007) won't accept your array formula with [@Name]). Thanks for the help.

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

    Re: Formula to return a highest score

    Or Try

    M2=MAX(IF($A$2:$A$16=J2,$B$2:$B$16))&"("&INDEX(Table1[Date],MATCH(J2&MAX(IF($A$2:$A$16=J2,$B$2:$B$16)),Table1[Name]&Table1[Marks],0))&")" With CRTL+SHIFT+ENTER

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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)

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    you data is in table format what you have uploaded here and those are table syntax are you using table formatting in your actual sheet

    see attached file
    Attached Files Attached Files
    Last edited by hemesh; 01-11-2016 at 05:47 AM. Reason: attachment

  12. #12
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    Thanks, Ankur—your formula works brilliantly. I'm going to adapt the formula to use in my actual sheet. Thanks also to everyone who helped.

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

    Re: Formula to return a highest score

    Glad to help you and thanks for feedback. Please mark it as solved if you satisfy and please add reputation by clicking * star icon left corner of your screen to those post which you helpout.

  14. #14
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    @ hokkaido could you atleast go through the file I attached. Anyways

  15. #15
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    how about below just copy paste in m2 and hit enter

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


    change references according to your data

  16. #16
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    The formula works apart from the fact that it is returning numbers and not dates. You can see this in the Excel file here: MaxIf.xlsx
    Thanks!

  17. #17
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    try below then
    =MAX(IF($A$2:$A$16=J2,$B$2:$B$16))&" ("&TEXT(INDEX(Table1[Date],MATCH(J2&MAX(IF($A$2:$A$16=J2,$B$2:$B$16)),Table1[Name]&Table1[Marks],0)),"MMM")& ")"

  18. #18
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    Thanks, again. But it's not working in my actual table as I have my dates formatted as, for example, 9 May 2015.

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,554

    Re: Formula to return a highest score

    How are we to know your date format if you don't show it in posted sample files ?????

  20. #20
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    your date is actual date or is it formatted as text.

  21. #21
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    OK, apologies. The date format in this sample file is now the same as the format (formatted as date) in my actual file: MaxIf.xlsx

    Is it better to format dates as text? Thanks!

  22. #22
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    @hokkaido ! Did you try formula from post 17
    it is need to be array entered
    copy paste formula and then hold control and shift together and then hit enter key to make it array formula

  23. #23
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Formula to return a highest score

    Don't you sleep, hemesh? I've just tried it and it works: thanks! Later today, I'll adapt it for my actual worksheet and use "D MMM YYYY".

  24. #24
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Formula to return a highest score

    You are 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. Formula for Highest Score from number but display Name
    By wariodemon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2013, 08:30 PM
  2. Replies: 1
    Last Post: 11-24-2013, 07:53 AM
  3. Replies: 11
    Last Post: 11-26-2012, 09:53 AM
  4. [SOLVED] formula to find name of person who scored highest score
    By rohit43 in forum Excel General
    Replies: 8
    Last Post: 11-21-2012, 11:58 AM
  5. Replies: 1
    Last Post: 11-19-2012, 03:58 PM
  6. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  7. Pulling test score based on date, not highest score.
    By PowerSchoolDude in forum Excel General
    Replies: 2
    Last Post: 12-01-2009, 06:42 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