+ Reply to Thread
Results 1 to 11 of 11

Check the last 5 grades student has received

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Check the last 5 grades student has received

    Hi all,

    I'm wondering if someone can help me. I have very big spreadsheet with a long list of students and the last 10 exam grades they've received.

    What I want to do, based on the criteria of the students name, is pull the last 5 grades they got (newest to oldest). The list will change over time and the grades they received will drop off and they will get new grades. So basically when I add a new grade, the oldest grade will drop off because I only ever need the last 5 results. It would help if I could see Grade 1 (being the oldest) through to Grade 5 (being the newest).

    I hope that makes sense. Any help would be massively appreciated.

    Thanks
    Last edited by ShakJames; 09-13-2016 at 10:46 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Check the last 5 grades student has received

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Never use Merged Cells in Excel

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Check the last 5 grades student has received

    Is the data sorted/grouped by student name?

    Are the dates for the student sorted? In what order?

    It might be better if you could post a SMALL sample file so we can see your data structure.

    A SMALL file will be about 20 rows worth of data!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Check the last 5 grades student has received

    Hi,

    Thanks for the reply. I have mocked up an example spreadsheet (the really SS has over 200 unique student names). There is no date sorting. The grades at the top are the oldest and ones at the bottom are the newest.

    Every time a student gets a grade it is just added (not ideal - no idea why it has been designed like this. Done before I arrived). The problem I now I have is that I need to extract it.

    I want be able to that by typing students name in A2 (on After Sheet Worksheet on the SS) and for it to bring up the last 5 grades received to be populated in B2,C2,D2,E2,F2...

    I hope this makes sense.

    Thanks again.
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Check the last 5 grades student has received

    This array formula** entered in B2 and copied across to F2:

    =IFERROR(INDEX('Student Grade Data'!$B:$B,LARGE(IF('Student Grade Data'!$A$2:$A$150='Student Grade Data'!$D2,ROW('Student Grade Data'!A$2:A$150)),COLUMNS($B2:B2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  6. #6
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Check the last 5 grades student has received

    Hi,

    Thanks for quick response. Just added it to B2 and copied across to F2, as an array and I'm just getting a 0 across all the checks.

    Any ideas?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Check the last 5 grades student has received

    Ooops!

    I wrote the formula on the Student Grade Data sheet then just cut/pasted it to the After Sheet and forgot to change the criteria cell:

    'Student Grade Data'!$D2 should be $A2...

    =IFERROR(INDEX('Student Grade Data'!$B:$B,LARGE(IF('Student Grade Data'!$A$2:$A$150=$A2,ROW('Student Grade Data'!A$2:A$150)),COLUMNS($B2:B2))),"")

    Still array entered.

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Check the last 5 grades student has received

    The name cell is in fact A2, therefore

    =IFERROR(INDEX('Student Grade Data'!$B:$B,LARGE(IF('Student Grade Data'!$A$2:$A$150=$A2,ROW('Student Grade Data'!A$2:A$150)),COLUMNS($B2:B2))),"")

    still array entered as Tony specified, and then copy across.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  9. #9
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Check the last 5 grades student has received

    Brilliant. Thanks to you both. That has worked an absolute treat.

    Massively appreciate all your help.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Check the last 5 grades student has received

    You're welcome. Thanks for the feedback!

  11. #11
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Check the last 5 grades student has received

    No problem. I love these forums. People are extremely generous.

+ 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] Using IF formula for Student Grades
    By hokkaido19 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2015, 04:46 AM
  2. [SOLVED] Finding Student Grades in multiple sheets
    By markusshare in forum Excel General
    Replies: 13
    Last Post: 04-20-2013, 05:41 PM
  3. dealing with student grades
    By nhush in forum Excel General
    Replies: 9
    Last Post: 07-03-2012, 02:35 AM
  4. Formula problem - Student Grades
    By tom Harding in forum Excel General
    Replies: 3
    Last Post: 03-11-2009, 09:03 PM
  5. Student Grades Distribution Chart
    By sjbuck in forum Excel General
    Replies: 7
    Last Post: 11-27-2007, 12:44 PM
  6. [SOLVED] average student grades
    By billynolan in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-08-2005, 12:05 PM
  7. Vlookup student grades
    By Vicky in forum Excel General
    Replies: 7
    Last Post: 05-19-2005, 09:06 AM

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