Would you like to be notified for every new articles? Please click HERE to subscribe for newsletter.

Google Apps Script for Converting Google Spreadsheet to Google Form

  • Posted on: 23 January 2021
  • By: admin

Please consider the following problem. We have some kind of questions bank which we stored in spreadsheet like Excel or anything similar. One day, we want to create an online quiz with Google Form based on the questions bank we had. How can we generate the online quiz in easy and fast way? By using Google Apps Script we can automate the task of converting the questions from Google Spreadsheet into Google Form. The script will generate the final Google Form which we can use and share to our respondents later.

In order to do that, please follow these steps. By the way the user interface in the following steps is in Bahasa Indonesia but the place of each menu is exactly the same with other language so I think it will not be an issue to follow the explanation below.

  1. First of all, open the following link for downloading and copying some required files: https://github.com/w3shaman/spreadsheet-to-form.
  2. After that, please download the create_form.xlsx. Please pay attention to some important sections of that file. There are specific section for us to put the quiz title, description, list of questions, answer options, correct answer, point, and also the separator to create new page or section in Google Form.

  3. We are also able to create non-multiple choice question by omitting the answer options, and correct answer.
  4. New, Create a new Google Spreadsheet.
  5. Copy the content of create_form.xlsx then paste it to your new Google Spreadsheet.
  6. Click Tools -> Script Editor.

  7. Download Code.gs then copy its content to the script editor then save it.

  8. Reload the Spreadsheet.
  9. Now there will be a new menu Kuis after the Help menu. Click it then click Buat Google Form.

  10. If you were asked for authorization, just click Continue then login with your Google Account. After that, click Allow. We might need to repeat the step in number 9 once again.
  11. Wait until the dialog box appeared.
  12. Check your Google Drive, there will be a new Google Form for that quiz. You can edit it again or just publish it.

Add new comment

Limited HTML

  • Allowed HTML tags: <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.