+ Reply to Thread
Results 1 to 5 of 5

Grade Spreedsheet

  1. #1
    Registered User
    Join Date
    07-13-2008
    Location
    Tacoma
    Posts
    8

    Grade Spreedsheet

    Hi,

    So I'm doing a basic grade to GPA spreadsheet. Column I has the letter grade that is picked from a drop down list that references a simple named list on another worksheet. Column J has the following:

    =IF(I2="A","4",IF(I2="B","3",IF(I2="C","2",IF(I2="D","1",IF(I2="F","0",IF(I2="",""))))))

    I then have J16 do this:

    =SUM(J2:J15)

    The problem is J16 only returns 0. Also, how would I have J16 sum then divide the result by the number of cells that have a value in J2:J16 ?

    Thanks in advance

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Grade Spreedsheet

    try

    =INT(IF(I2="A","4",IF(I2="B","3",IF(I2="C","2",IF(I2="D","1",IF(I2="F","0",IF(I2="","")))))))

    Your version retuned a string rather than a number.

    Alternatively

    =IF(I2="A",4,IF(I2="B",3,IF(I2="C",2,IF(I2="D",1,IF(I2="F",0,IF(I2="",""))))))

    which returns numbers directly.
    Martin

  3. #3
    Registered User
    Join Date
    07-13-2008
    Location
    Tacoma
    Posts
    8

    Re: Grade Spreedsheet

    mrice...awesome, I tried the second option and it worked. I didn't realize that the quotes turned the numbers into characters.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Grade Spreedsheet

    Or try this one

    =IF(I2="","",LOOKUP(I2,{"A","B","C","D","F"},{4,3,2,1,0}))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Winterville, NC
    MS-Off Ver
    Excel 2013
    Posts
    141

    Re: Grade Spreedsheet

    Also at the end of your equation you could add +0 and that would turn your # back into a #.

+ 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. Replies: 5
    Last Post: 11-30-2013, 01:28 PM
  2. Replies: 5
    Last Post: 02-17-2013, 03:29 PM
  3. Conditional formatting to reflect exam grade compared to predicted grade
    By strangecharm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-20-2012, 09:33 AM
  4. Student grade inputting and grade percentage calculations
    By confusedteacher in forum Excel General
    Replies: 2
    Last Post: 10-23-2011, 07:50 PM
  5. Macro To Change Letter Grade To Number Grade
    By florinel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2008, 11:14 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