+ Reply to Thread
Results 1 to 16 of 16

How to limit exam attempt of a user in excel

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    How to limit exam attempt of a user in excel

    Hi All,

    I have created a exam/test in excel but am stuck in with the below issue, i want that a single user can only have three attempts to clear/pass the test, failing which the user can not take the test unless we do not reset the counter again.

    It will be a great help if some one can guide me or provide me with a code, many thanks

    Regards

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: How to limit exam attempt of a user in excel

    Hi,
    It's not fully clear how does your test works. I guess it's not a problem to limit atempts to 3 while file is opened, but after user re-open file - he can have another 3 attempts.
    Probably not the best solution, but:
    In this case you could create some txt file somewhere on local/network disk. Before start the test - macro should check if this file exists. If not - this is first time then user run the test and have 3 attempts. After 3 attempts txt file should be created and file shold be closed. Re-opening of the test will not give additional attempts to user. This will be possible only after txt file will be deleted.

  3. #3
    Forum Contributor
    Join Date
    07-23-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    273

    Re: How to limit exam attempt of a user in excel

    You might want to add another sheet to the exam workbook that is hidden and password protected such that only you you can open in VBA and record user's id's/names, etc. when the user enters/logs into the exam spreadsheet and then exits to record how may times they have taken the test. Of course, if the user has any reasonable excel experience, he can probably break into the hidden sheet by looking at your VBA code.

  4. #4
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: How to limit exam attempt of a user in excel

    You could try to enforce this as others have mentioned, however no matter what approach you take I see them all being able to be circumvented.

    If the user opens the file with macros disabled, if they open it holding down shift to prevent events from triggering, if the user reviews the code for any password without opening the file prior, if they save a separate copy and then over write the original, etc.

    Excel isnt meant to be a secure system, neither is VBA. You can make it difficult to do more than 2-3 attempts, but if they have 5 mins to Google and really want to do it more, than they will be able to.

    Without any idea of how your test actually works, it may be a better idea to consider using a platform meant to administer testing.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  5. #5
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: How to limit exam attempt of a user in excel

    Thanks for the suggestions, i will try the said options, meanwhile if some thing else comes up please let me know here, Many thanks.

  6. #6
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: How to limit exam attempt of a user in excel

    Hello Guys, thanks for the help you provided and it will be great if you can help me a bit for on this.

    Below is the output of the test result file [from Column A to Column E - where I am storing the data/record of the test) what I need is column ‘F’ and Column ‘G’ auto populated once the results come in to the sheet (column A to Column E), the data in Column F depends on the data of a Column ‘A’ and ‘D’, column ‘A’ is employee ID and is unique field where as Column ‘D’ is technology and it can be multiple to same employee (Here in the example it is Informatica, DB2, SQL), based on employee id and technology an employee can have 3 valid attempts for each technology post which the value of attempt column increments for that user and technology and column value for column ‘G’ becomes Invalid as shown in the snapshot.

    I have attached the test file with the end result as well, please let me know if any more details are required to describe the case.

    Regards
    Attached Images Attached Images
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to limit exam attempt of a user in excel

    Formula in :
    F2: =COUNTIFS($A$2:$A2,A2,$D$2:$D2,D2)
    G2: =PROPER(IF(F2<4,"","In")&"Valid")

    Conditional format in G2:G21, Formula =G2="Invalid", Choose cell color.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: How to limit exam attempt of a user in excel

    How will these formulae limit the attempts at the test???
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: How to limit exam attempt of a user in excel

    The notifications will limit the testers interpretation of the results. The employee can take the test as many times as they want but rverything after attempt #3 is a 0 score.

    Its an easier approach than "keep them out of the workbook after 3 attempts".
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  10. #10
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: How to limit exam attempt of a user in excel

    Quote Originally Posted by AliGW View Post
    How will these formulae limit the attempts at the test???
    I dont think hes limiting it, just keeping track of which results are valid.

    However @maxterrr is there a question in that post, seems like you have created what you asked for in post #6.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: How to limit exam attempt of a user in excel

    Ah, OK - thanks, chaps.

  12. #12
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: How to limit exam attempt of a user in excel

    Yes, ZerOCool, i have created some thing simpler, but still not able to restrict the users, as of now Jindon's code will keep a tract of number of attempts and it's validity, but i need to wore more on this to find out a way to restricit user. i will keep you posted mean while if you have any other idea please post it here, many thanks.

    @ Jindon, Thanks as always

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to limit exam attempt of a user in excel

    What do you mean by "restrict user"?

    I don't think it is possible to do with Excel to restrict user from exam physically.

  14. #14
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: How to limit exam attempt of a user in excel

    Quote Originally Posted by Zer0Cool View Post
    however no matter what approach you take I see them all being able to be circumvented.
    Quoting myself on this one, the gist hasnt changed. To clarify:

    NOTHING you do in Excel will prevent someone from retaking the test if it is administered in Excel.

    It may deter them, slow them down, make it impractical to take beyond the limit, etc. However anyone who really wants to circumvent any limitations you put in place can and will.

    Your options are:
    • Come up with a way to verify the results (like you have)
    • Move your testing to a program made for testing

  15. #15
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: How to limit exam attempt of a user in excel

    Sheet Protection, password test
    VBA Protection, password test

    transformation to sheet1 by Userform

    Please Login or Register  to view this content.

    Kind regards
    Leo
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: How to limit exam attempt of a user in excel

    Thank You All for the help, closing this thread for now.

+ 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. return the latest attempt at an exam from a list
    By reganm in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-10-2014, 09:44 AM
  2. I Need Assistance please! MOS Excel Exam
    By tjco225 in forum Excel General
    Replies: 3
    Last Post: 12-16-2013, 11:21 PM
  3. Help regarding mos excel 2010 exam
    By simran555 in forum Excel General
    Replies: 1
    Last Post: 10-08-2013, 03:20 AM
  4. Excel How to Limit User Help
    By NeroMorte in forum Excel General
    Replies: 4
    Last Post: 10-01-2013, 09:08 AM
  5. MOS Excel 2010 (Exam 77-882)
    By crazysniper in forum Excel General
    Replies: 0
    Last Post: 08-27-2012, 05:48 AM
  6. Excel Exam Question
    By scottnoddin77 in forum Excel General
    Replies: 5
    Last Post: 12-09-2006, 11:17 PM
  7. Restrict-Filter-Limit-Validate user input in Excel
    By Dr. Thom in forum Excel General
    Replies: 0
    Last Post: 01-22-2006, 04:10 PM
  8. Excel Expert Exam..!
    By salooha in forum Excel General
    Replies: 2
    Last Post: 07-11-2005, 01:43 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