+ Reply to Thread
Results 1 to 11 of 11

replacing lowest test grade with final if final is higher formula help

  1. #1
    Registered User
    Join Date
    01-21-2010
    Location
    San Antonio TX
    MS-Off Ver
    Excel 2007
    Posts
    14

    replacing lowest test grade with final if final is higher formula help

    Hello all,
    I am putting together a gradebook and am having problems coming up with an IF statement to replace the lowest, non zero test grade with the final.

    If A1:A4 are the test and A5 is is the final, what would I need to do for the formula to look at the lowest, non zero test of those 4 and if the final is larger, replace it?

    Thanks
    Last edited by colbyclay; 08-27-2010 at 02:18 PM. Reason: Issue was solved!!!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: replacing lowest test grade with final if final is higher formula help

    Formulas can't replace data, only VBA can do that.

    If you'd like some help with a macro, click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-21-2010
    Location
    San Antonio TX
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: replacing lowest test grade with final if final is higher formula help

    Hello JBeaucaire. I have attached a scrubbed copy of what I have so far. I dont have any experience with VBA so was trying to do it with formulas. Thanks for any help you can give.

    Cheers!
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: replacing lowest test grade with final if final is higher formula help

    Keep in mind we're good at Excel, we're not good at "Colby thinking". Your example shows 100s all the way across, not very helpful. Also, your abbreviations aren't all obvious. Make it easy on us.

    Please complete 2-3 complete rows of sample varying data. Don't dumb it down, make it as complex as it is normally and then show your expected results. Demonstrate the calculations for each row and explain why it is so it's clear.

    Use the cells out to the right to show the progressions of your calculations until you reach a final grade. I'm sure we can help consolidate that all back down into one formula.

    It looks like you already have the trick for dropping the lowest

  5. #5
    Registered User
    Join Date
    01-21-2010
    Location
    San Antonio TX
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: replacing lowest test grade with final if final is higher formula help

    JBeaucaire, that cracked me up. It makes perfect sense to me, but then again, I am the one that created it, so it would only be natural...

    I have added more explanation in the form of text boxes to the example.

    I am just stuck on how to get the lowest test grade dropped and replaced by the final if it is higher. I could have everyone enter it manually, but I know there has to be a way to do it automatically.

    Once again, thanks for any help
    Attached Files Attached Files
    Last edited by colbyclay; 08-27-2010 at 10:01 AM. Reason: Added more info.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: replacing lowest test grade with final if final is higher formula help

    Here's another way to approach it. Instead of thinking of it as "replacing a lower test grade with the final grade", think of it a s bonus of the difference.

    Lowest test grade = 60
    Final = 85
    Bonus = 25

    Put this formula in AF18 and copy down to see what I mean:
    =IF(AE18>MIN(Z18:AC18),AE18-MIN(Z18:AC18),0)

    This gives you the "bonus" points to add back in. Now apply your weights to that bonus as well and you should be good to go.

  7. #7
    Registered User
    Join Date
    01-21-2010
    Location
    San Antonio TX
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: replacing lowest test grade with final if final is higher formula help

    Brilliant! I didn't even think of the difference. I was too hung on "replacing" the grade. This will work perfectly. Thanks so much for the help!!!

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: replacing lowest test grade with final if final is higher formula help

    We are a village!

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  9. #9
    Registered User
    Join Date
    01-21-2010
    Location
    San Antonio TX
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: replacing lowest test grade with final if final is higher formula help

    JBeaucaire, one more thing that I noticed. It looks like if I put in a zero, it will count this. If a student misses a test, I do not want the final to replace that grade. How would I have it only replace non zero values?

    Thanks

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: replacing lowest test grade with final if final is higher formula help

    That's a tougher creature, requires an array formula, since the range being evaluated is small, this should be ok. Large-range-arrays can really slow your workbook down.

    Put this array formula in AF18:

    =IF(AE18>MIN(IF(Z18:AC18>0,Z18:AC18,"")),AE18-MIN(IF(Z18:AC18>0,Z18:AC18,"")),0)

    ...and confirm it by pressing CTRL-SHIFT-ENTER to activate the array. You should see your first value appear. If you get an error message, press F2, the try CSE again.

    Once you get the first value to appear, you can copy that cell down the column.
    Last edited by JBeaucaire; 08-27-2010 at 01:50 PM. Reason: corrected array formula

  11. #11
    Registered User
    Join Date
    03-16-2012
    Location
    Edmond, OK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: replacing lowest test grade with final if final is higher formula help

    Hello,

    I have a very similar question to what has been posted. My version of the grade book is not for the class as a whole but for each individual student. Under the "CHEM1103" tab (see attachment) in cell D20 I have 1) formula to calculate current grade as I input earned scores in column E; and 2) drop the lowest homework score. Now without riding of these formulas, how can I "replace" (or give a bonus like mentioned in previous threads) the lowest, non-zero exam score (worth 150 pts.) if the final (worth 200 pts.) is higher? (Note: the "Points" column (D) is the total points possible, and the "Score" column (E) is the score earned by the student.)

    Thank you much.
    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)

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