+ Reply to Thread
Results 1 to 4 of 4

Automatic generation of Mark distribution

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    62

    Automatic generation of Mark distribution

    I need to automate the mark distribution based on each lesson with the below conditions:

    N6 to N13 should always be 16 marks and marks should be distributed for that corresponding row which will add up to 16 marks (* Marks per question varies for each question type and i have mentioned it in the column name):

    Rule 1: B6:M6 to add up to 16 marks with the following conditions:

    if G6 has an input then H6 must be blank and vice versa..

    similarly same Rule 1 applies for G7,H7, .....G13,H13.

    Rule 2: For column K, from lesson 1 to 4 one random entry and lesson 4 to 8 one random entry.

    similarly Rule 2 applies for column L.

    The above two rules must satisfy the rule 3.

    Rule 3: For column B15:M15 i have already used conditional formatting which turns green when the right number of questions are chosen.
    Attached Files Attached Files
    Last edited by meetgilbert; 12-21-2019 at 11:28 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,837

    Re: Automatic generation of Mark distribution

    I started to mention in the previous thread that I thought we might be trying to reinvent the wheel as there already exist test generators.
    I put 'test generator' and 'test generator free' in a search window and got multiple pages of websites for both.
    As to your file, the best that I am able to come up with is to show how the calculations in N6:N14 may be made simpler as well as how you might simplify the conditional formatting rules for B15:M15 for future reference.
    As to N6:N14
    1. Populate B4:M4 with the number of marks allotted for each type of question.
    2. Populate N6:N14 using: =SUMPRODUCT(B$4:M$4,B6:M6)
    As to the conditional formatting in B15:M15
    1. Populate B3:M4 with the number of questions for each type of question.
    2. Use the following for green: =B15=B3
    3. Use the following for red: =B15<>B3
    4. Both rules are applied to =$B$15:$M$15
    Note that rows 3:4 could be easily hidden by changing the font to white.

    There might be a possibility that the Analyze utility (Data tab) "Solver" could do what you want. To me some obstacles are the rules for columns G and H as well as K and L. Also not all choices are binary, note that 2 questions have been chosen in several instances. Then again, there are some gifted contributors that know "Solver" much better than I. I suggest that you let this sit through Christmas and if no one responds, send a PM to one of the moderators requesting the thread be moved to the Excel Programming / VBA / Macros forum as that is another possibility. My best suggestion, not to be a broken record, is to search for a pre existing exam generator that might fit your needs and budget.

    Sorry not to be of more help. I hope that you have a blessed day.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    62

    Re: Automatic generation of Mark distribution

    Thanks for your effort and time. you have simplified the conditional format. I thought of another idea...what if i do the combinations manually and then if i can get the excel to randomly generate those manual combinations ?
    Attached Files Attached Files
    Last edited by meetgilbert; 12-23-2019 at 11:52 PM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,837

    Re: Automatic generation of Mark distribution

    Sounds as if it should work, however we would probably need to see the manual combination table and questions together so that we could test.
    Let us know if you have any questions.

+ 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. automatic hyperlink generation
    By Dineth in forum Excel General
    Replies: 3
    Last Post: 03-15-2016, 03:37 PM
  2. [SOLVED] Generation of random numbers from a Lognormal distribution
    By Romoluzzi in forum Excel General
    Replies: 5
    Last Post: 09-14-2013, 09:26 AM
  3. Excel 2007 : Automatic Chart generation
    By hoobnb1 in forum Excel General
    Replies: 1
    Last Post: 10-19-2010, 09:23 AM
  4. [SOLVED] Automatic number generation.
    By BM in forum Excel General
    Replies: 1
    Last Post: 08-14-2006, 09:40 AM
  5. Automatic Sheet Generation???
    By DarrenG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2006, 09:46 AM
  6. [SOLVED] Automatic List Generation
    By JerryS in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-15-2006, 03:10 PM
  7. Automatic E-Mail Generation
    By pikus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2005, 03:50 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