Вы находитесь на странице: 1из 94

[1]

The following instructions will show you how to create an Excel


worksheet that allows students to take multiple choice tests (practice or real)
that are randomly generated. No visual basic code is used so when you
receive the graded worksheet back you don’t have to worry about viruses.
[2] Change the size of columns B through E to size 19.

1 3 2
R

6 (5) Type 19
4
[3] Change the width of column A to 3.

1
R

(3) Type 3

4
2
[4] Type this into Microsoft Excel.

(1) Type in text and numbers


We are going to set the calculation iteration to 1. We are doing this so
we can add cells that reference themselves (circular reference). This
[5] will enable us to randomly shuffle questions and then freeze on the
question we are presenting.

2
[6] Set Iteration to 1.

2 (3) Type 1

4
Type this formula into Microsoft Excel. This formula will not change
[7] its value if the shuffle cell ($B$1) is false, but when true will randomly
pick the number of one of the questions you have provided.

(1) Enter Formula


[8]
The formula =IF($B$1=TRUE,INT(RAND()*COUNT(C2:Z2)+1),B2)
looks daunting but its not so bad when you break it down into the functions
it contains. First the formula counts to see how many questions there is to
choose from and then adds one “COUNT(C2:Z2)+1”. This value is
multiplied by the random function “RAND()” which provides a random
number between 0 and 1. The result of the multiplication is reduced to an
integer value using “Int( )” thus selecting one of the questions you have
provided.
To prevent the question from changing every time you change the
worksheet we must find a way to freeze the result. We do this by changing
calculation iteration to one (which we have already done) and then placing
the question we are choosing In an IF statement “=IF(condition , true ,
false )”. The IF statement will change the result only if the value we set in
cell B1 is true “$B$1=TRUE” otherwise it will use the result already
contained in this cell “B2”.
Type this formula to do a horizontal lookup for a value “B2” in the
top row of a table “C2:Z8” and when it finds a value that matches
[9] returns the value from the row you specify “2”. This places the
selected question in cell B3.

(1) Enter Formula


[10] Type this formula to select the correct answer.

(1) Enter Formula


[11] Type this formula to select the first choice.

(1) Enter Formula


[12] Type this formula to select the second choice.

(1) Enter Formula


[13] Type this formula to select the third choice.

(1) Enter Formula


[14] Type this formula to select the fourth choice.

(1) Enter Formula


[15] Rename sheet1.

R 2
1
[16] Give sheet1 the name Questions.

(1) Type Name


[17] Prepare to format the questions.

2
Use autoformating Accounting 3.
[18]

5
3
4 2
[19] Switch to Sheet2.

1
[20] Rename sheet2.

2 3
[21] Change the name of Sheet2 to Test.

(1) Type Name


Enter formula will display the name of the test stored in cell D1 on
[22] sheet Questions.

(1) Enter Formula


[23] Type this into Microsoft Excel.

(1) Type text


[24] Display the Control Toolbox.

3
[25] Add a text box.

2
3

1
[26] Rename Sheet3.

R 2
1
[27] Change the name of Sheet3 to Results.

(1) Type Name


Type the formula that puts the name of the test on the Results
[28] worksheet and then switch to Text sheet.

(1) Type formula

2
[29] Bring up the properties of the text box.

2
1 3
[30] Define where the contents entered in this text box will be placed.

(1) Enter
cell address
[31] Create a check box.

2
3 4

1
Link the check box so it determines (TRUE or FALSE) if you want
[32] the questions to be shuffled.

(1) Type caption

(2) Type linked cell


[33] Type a formula that displays the first question.

(2) Type formula


[34] Create a drop down box the user will select there answer from.

4
2
3
1
Change the properties of the dropdown box to list possible choices
[35] “List Fill Range” and where their choice will be stored “Linked Cell”.

(2) Type Linked Cell

(3) Type List Fill Range

1
[36] Test the check box and Drop down list.

2 1

4
[37] Switch to the Results sheet.

1
[38] Type this formula to display the first question.

(1) Type formula


[39] Type this formula to display the correct answer to the question.

(1) Type formula


[40] Type this into Microsoft Excel.

(1) Type text


[41] Type this formula to grade the first question.

(1) Type formula


[42] Type Result text.

(1) Type text


[43] Type this formula to total the results for the entire test.

(1) Type formula


[44] Change the format of the results cell.

1
R

2
[45] Format the results cell to Percentage with no places after the decimal.

4
[46] Select column A to format all its cells.

1
R

2
[47] Change column A to right justified.

4
[48] Switch to the text sheet.

1
[49] Add question numbers and switch to the Questions sheet.

(1) Type text

2
Copy the text, formulas and formatting of question one to create
[50] question two.

2
3
(4) Press Control + V
[51] Attach the Control Toolbox to the side of the Excel window.

1
[52] Type this text into Microsoft Excel.

(1) Type text


[53] Define a name for the cell that contains question 2.

3 4

1
[54] Call the cell Question2.

(1) Type cell name


[55] Define a name for the cell that contains answer 2.

3 4

1
[56] Call the cell Answer2.

(1) Type cell name


Define a name for the range of cells that contains the choices for
[57] question 2.

4 5

2
[58] Name the range of cells Choices2.

(1) Type cell name


[59] Switch to the Results sheet.

1
Define a name for the cell that will contain the students result for
[60] question 2.

3 4

1
[61] Call the cell Result2.

(1) Type cell name


[62] Add question 2 to the Results worksheet.

(1) Type formula


[63] Add Answer 2 to the Results worksheet.

(1) Type formula


[64] Copy the formula that marks the question.

1 (2) Press Control+C

3 (3) Press Control+V


[65] Add question numbers and switch to the Test sheet.

(1) Type Text

2
[66] Add question 2 to the Test sheet..

(1) Type formula


[67] Create a drop down box.

2 1
3
Change the properties of the dropdown box to list possible choices
[68] for question 2 “List Fill Range” and where the result for question 2
will be stored “Linked Cell”.

(2) Title bar

(3) Menu Bar

1
[69] Test the text box.

(2) Type text


[70] Select an answer for question 2.

2
[71] Switch to the Results sheet.

1
[72] Adjust the width of column B.

1
[73] Switch to the text sheet.

1
[74] Answer the first question.

1
2
[75] Answer the second question.

2
[76] Switch to the Results sheet.

1
Hide the Results sheet. If you wanted students to check there score
[77] you could leave this sheet unhidden.

2
3
[78] Hide the Questions sheet.

3
4

1
[79] Format all the cells in the Test sheet.

2
3
1
[80] Make sure all the cells in the Test sheet are Locked.

1
2

3
[81] Protect the Test worksheet so it cannot be altered.

2 3
[82] Add a password to prevent tampering.

(1) Type (3) Type


Comp1813 Comp1813

4
Protect the entire workbook so the Questions and Results sheets
[83] cannot be unhidden.

2
3
[84] Add a password to prevent tampering.

(1) Type (3) Type


Comp1813 Comp1813

4
[85] Sheet is protected.

(1) Type H

2
[86] You cannot unhide other sheets.

2
[87] Unprotect workbook.

2
3

(4) Type comp1813

5
[88] Unprotect the Test sheet.

2 3

(4) Type comp1813

5
[89] Unhide the questions sheet.

2
3

5
[90] Unhide the results sheet.

2
3

5
[91] Switch to Test sheet.

1
[92] Change the options of the Test sheet.

2
[93] Turn Gridlines off for the Test sheet.

3
[94] Test sheet no longer has those annoying gridlines.

Вам также может понравиться