SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Using SharePoint Surveys for a Quiz - Part 2

In Part 1, I showed how to configure a SharePoint survey to be used as a quiz.  In Part 2, I will show how to easily "grade" the quiz.  In our case, since we were using it as part of a contest, we will also see how to easily select the winner of the contest.

After you create the survey for the quiz, but before you have users submit their responses, delete any test responses you have created so there are no responses on the survey.  Then take the survey and answer all the questions correctly (hopefully you know what the answers are supposed to be!).  This will make the first recorded response to the survey the "key" or correct answers to the quiz.  We will use this later to grade the quiz.

Once all users have responded to the survey, it's time to do the grading.  Navigate to the survey's "overview" page.  In part 1, we renamed this page so others could not export the questions to Excel, so navigate to whatever you called the previouly named "overview.aspx" page.  In our case, we renamed it to "overview_admin.aspx".

In the survey's toolbar, click on Actions and choose Export to Spreadsheet.  This will export the survey and all responses to Excel, with the questions as column headings and each response as a row.

Find the column of the last question in the survey.  This is not the last column - SharePoint exports two useless columns at the end labeled Item Type and Path (I have yet to find a good use for these).  For example, my survey has 26 questions, so the last question is in column AA.

Now, assuming the correct answers are in the first response (row 2), paste a formula like this in row 3, in the cell after the last column (the Path column):

 =SUMPRODUCT((B3:AA3=$B$2:$AA$2)*(B3:AA3<>""))

For your survey, replace AA in the formula with the column ID of the last question in your survey.

When you paste it in the cell, it will automatically repeat for each survey response.  You should see a number appear for each survey, indicating the number of correct responses.  As a check, the number in row 2 for this column should equal the number of questions in your survey.

That's it! Your quiz is graded.  The name of each user responding is in column A, and their score is in the last column.

To find the best scores, click on the drop down arrow in the new column heading and choose Sort Largest to Smallest.  The person's name in cell A3 has the highest score.  (You would also need to check for ties.)

 


Posted 09-24-2008 9:28 AM by joed

Comments

Links (9/25/2008) « Steve Pietrek - Everything SharePoint wrote Links (9/25/2008) &laquo; Steve Pietrek - Everything SharePoint
on 09-25-2008 7:31 PM

Pingback from  Links (9/25/2008) &laquo; Steve Pietrek - Everything SharePoint

Ben Weeks wrote re: Using SharePoint Surveys for a Quiz - Part 2
on 10-08-2008 3:56 AM

Any ideas on how to grade the quiz as the user submits the survey? Rather than having to do a manual step?

joed wrote re: Using SharePoint Surveys for a Quiz - Part 2
on 10-08-2008 7:28 AM

I can't think of an easy way, other than perhaps writing an event handler that does the grading (I wouldn't classify that as "easy"...).

Unfortunately, you cannot have workflows on surveys (support.microsoft.com/.../926370).

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.