+ Reply to Thread
Results 1 to 18 of 18

Honor roll calculation - add subject grades based on subject list + ignore some subjects

  1. #1
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Honor roll calculation - add subject grades based on subject list + ignore some subjects

    Hi, I'm looking for a way to add the grades of all subjects for particular student. However, if there are two subjects containing "Lang & Lit" in the name then only add the higher grade.

    E.g.
    French Lang & Lit 22
    English Lang & Lit 24
    Individuals & Societies 23
    Mathematics 23

    The total I want is: 24+23+23 = 70
    I have looked at =SUM(SUMIF(BB4:BB13, {"Mathematics","Individuals & Societies"},BD4:BD13)) -> It works but can't find a way to only add the largest grade for subjects whom name contains "Lang & Lit".

    Grateful for any assistance.

    Regards, FMVigo
    Attached Files Attached Files
    Last edited by F-MVigo; 01-12-2018 at 04:20 AM. Reason: Attchment added

  2. #2
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Attach a sample workbook (not image).

    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.

  3. #3
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Thanks, I have added the attachment!

  4. #4
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    With helper in D

    in D2

    =IF($C2<>MAX(IF($B$2:$B$8=$B2,$C$2:$C$8)),"",$C2)

    Copy down

    in D9

    =SUM(D3:D8)

  5. #5
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Not the expected result - but thank you for trying!
    It only produces the MAX grade of the subject with the highest grade...

    Help is still needed.

  6. #6
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Data problem: your text in B3 is not the same as B2: copy B2 to B3
    Attached Files Attached Files
    Last edited by JohnTopley; 01-12-2018 at 08:04 AM.

  7. #7
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    WOW! Thank you!

    Is it possible to modify it so that the text can be slightly different? E.g. text that cointains "lang & Lit" maybe using *?

  8. #8
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Are "Lang & Lit" only courses where duplicates occur?

  9. #9
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    No. I will have to do the same for "Lang Acq".

  10. #10
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    So why not this ...

    NOTE: formula is array formula ..

    ...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.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    That would be great but the text before "Lang & Lit" and/or "Lang Acq" may change according to the language the student studies. e.g. French Lang & Lit, English Lang & Lit, Spanish Lang & Lit.
    If it could point to a preset list of possible subjects it would be OK. I could make the list of all options but I think that that is more complex than adapting the formula to:

    =IF($C2<>MAX(IF($B$2:$B$8=$B2,$C$2:$C$8)),"",$C2) (ARRAY) -> Where the "=$B"" would be something that contains "Lang & Lit". does that make sense?

  12. #12
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    I am confused as to why you cannot simply use the "helper" column approach which does not rely on the order of, or content of , column B..

    Column B can contain any text.

    Perhaps post another file illustrating the "problem"..

  13. #13
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Hi,
    Thanks for all the help.

    I like the helper column but the thing is that a student may have English Lang & Lit with French Lang & Lit where we only count the best grade of these two added the the grades of the other subjects.

    Thanks!

  14. #14
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Yes ... I eventually realised what you meant, In this case it would necessary to use the "wildcard" as you indicated earlier.

    I'll take a look at this.

  15. #15
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    That would be great. Look forward to hearing from you.

  16. #16
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    Long formula ..which hopefully you can adapt


    =IF(RIGHT($B2,10)="Lang & Lit",IF($C2<>MAX(IF(RIGHT($B$2:$B$10,10)="Lang & Lit",$C$2:$C$10)),"",$C2),IF(RIGHT($B2,8)="Lang Acq",IF($C2<>MAX(IF(RIGHT($B$2:$B$10,8)="Lang Acq",$C$2:$C$10)),"",$C2),IF($C2<>MAX(IF($B$2:$B$10=$B2,$C$2:$C$10)),"",$C2)))

    ...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.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    01-11-2018
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    FANTASTIC!!!!!!
    Thank you very much! Have a great weekend!

  18. #18
    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,152

    Re: Honor roll calculation - add subject grades based on subject list + ignore some subjec

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Help comparing two files by subject+Date, subject+DatePlus1, Subject+DateMinus1
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-11-2017, 07:37 AM
  2. [SOLVED] Calculating which students make honor roll
    By leahf in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-21-2015, 04:29 PM
  3. Opening emails based on subject
    By MikeFranz123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2013, 02:15 AM
  4. Replies: 10
    Last Post: 05-23-2012, 11:11 AM
  5. Create List w/ 2 or more Same Subject/Header for Sort
    By bdb1974 in forum Excel General
    Replies: 7
    Last Post: 03-04-2009, 05:27 PM
  6. How do I calculate the age of a subject based on their DOB?
    By Gdm/kmf in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-28-2006, 03:45 PM
  7. Subject: Your Help Needed with the Data List Generation
    By mariasa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2006, 06:11 AM

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