+ Reply to Thread
Results 1 to 3 of 3

calculating points and division using VBA in excel

  1. #1
    Registered User
    Join Date
    04-27-2011
    Location
    Iringa, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    18

    Smile calculating points and division using VBA in excel

    Hi experts!
    I want to calculate division and poins in excel using vba. Also i want the formula for putting "X" or "ABS" or "-"if the student did not do the exam. if the student got F in maths and she/he got division II, it should give the results III.
    points 7-17, 18-21,22-25,26-30 and 31-35
    Division I=(7-17),
    II=18-21
    III=22-25
    IV=26-30
    zero=31-35
    A=1,B=2,C=3,D=4,F=5
    Attached Files Attached Files

  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: calculating points and division using VBA in excel

    Like so, no VBA needed, just the two reference tables for scores and Divisions as shown.


    The formula in M2 will find the correct division based on the score in L2, plus will move up one division if they failed Math.
    Attached Files Attached Files
    _________________
    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
    04-27-2011
    Location
    Iringa, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: calculating points and division using VBA in excel

    thank you for your answer. real you have solved it but this time i want to select only seven subject that a student has perfomed well and get division one or two but Mathematics "F",he/she should be pernalised by giving he/she the same point but division three. eg. Civics B, History B, Kiswahili B, Biology C,English B, Physics B Chemistry C, Geography A and Maths F, the points are 14 and Division is I but iwant to be as follows points 14 and division III.

+ 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