Keeping score on a quiz

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
473
Office Version
  1. 2013
Platform
  1. Windows
Good morning. I've set up a quiz, screen shot below, testing knowledge of airport codes. When started, cells D18 and E18 are empty. The user enters their answer in D18. The correct answer appears in E18. If there's a match, both cells are green. If wrong, both cells are yellow. When a user double clicks NEXT, it moves to the next question, clearing out D18 and E18. All works perfectly. If it helps, here's a reference the post as to how I got to where I'm at: Setting up a test for students to get the right answer

Now what I need is a way to do three calculations.

1. Count how many answers the user has submitted. This number will go in J18.
2. Count how many answers are correct. This number will go in cell K18.
3. A simple mathematical formula will populate L18.

Lastly, and I maybe should put this in a different post, but it may be structurally important to ask it now, if someone wants to restart the test and clear scores, clicking Clear Results in N18 should take J18 and K18 back to 0.

Thanks in advance.

1721659643250.png
 
To do the following, make sure "Design Mode" is active:
1721691544887.png



Then name the button properly:

Right click the button and select Properties.
1721691331238.png


Change the name (highlighted) from "CommandButton1" to "ClearButton".
1721691391333.png
 
Upvote 0
Solution

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,702
Messages
6,173,961
Members
452,539
Latest member
delvey

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top