+ Reply to Thread
Results 1 to 2 of 2

Creating a GPA calculator

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Creating a GPA calculator

    I am trying to make a program that will calculate the GPA based on grades put in a table and it will return it under another table, I used the vlookup function but i keep on getting an error, how can I fix this
    For dblcol = 4 To 20 Step 2
    count
    For dblrow2 = 19 To dblrow
    vargrade = Cells(dblrow, dblcol).Value

    If Cells(dblrow, dblcol).Value <> "NA" Then
    vargpa = Application.WorksheetFunction.VLookup(vargrade, Range("A18:B25"), 2, False)
    dblgpa = dblgpa + vargpa
    Else
    Next
    End If

    Next
    dblgpa2 = dblgpa / Cells(13, dblcol).Value
    Cells(29, dblcol).Value = dblgpa2
    Nextcode?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Creating a GPA calculator

    If I'm not mistaken, this part:

    Please Login or Register  to view this content.
    is a blank cell.

    Here's a shorter code that could do the job.

    Please Login or Register  to view this content.
    Last edited by Bishonen; 11-19-2012 at 04:24 AM.
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

+ 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