How to Fill Google Form Automatically from Excel
So, you’re tired of manually inputting data from your Excel sheet into a Google Form? No worries, I’ve got you covered. You’ll learn how to use a combination of Google Sheets and a script to automate this tedious task. By the end of this guide, you’ll have a seamless way to transfer data from Excel to Google Form, saving you loads of time.
Step-by-Step Tutorial on How to Fill Google Form Automatically from Excel
In this tutorial, we will walk you through the process of setting up an automated system to transfer data from an Excel spreadsheet to a Google Form. This involves converting your Excel file into a Google Sheet, writing a script, and running it to fill out the form.
Step 1: Convert Excel to Google Sheets
First, upload your Excel file to Google Drive and convert it to Google Sheets format.
After logging into your Google Drive, click on ‘New’ and then ‘File upload.’ Select your Excel file. Once uploaded, right-click the file and open it with Google Sheets.
Step 2: Create Your Google Form
Create a Google Form that matches the fields in your Google Sheet.
In your Google Drive, click on ‘New’ and select ‘Google Forms.’ Design your form so that each question corresponds to a column in your Google Sheet.
Step 3: Open the Script Editor
Next, open the Google Sheet and click on ‘Extensions,’ then select ‘Apps Script’ to open the Script Editor.
This will bring you to the Apps Script interface where you’ll write the code to automate your form filling process.
Step 4: Write the Script
Write a script in the Script Editor that reads data from your Google Sheet and submits it to your Google Form.
Here’s a basic script to get you started:
var formURL = 'YOUR_GOOGLE_FORM_URL';
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var data = sheet.getRange(2, 1, sheet.getLastRow()-1, sheet.getLastColumn()).getValues();
function submitData() {
for (var i = 0; i < data.length; i++) {
var formData = {
'entry.123456': data[i][0],
'entry.123457': data[i][1],
// Map other form fields to sheet columns
};
var options = {
'method' : 'post',
'payload' : formData
};
UrlFetchApp.fetch(formURL, options);
}
}
Replace 'YOUR_GOOGLE_FORM_URL' with your actual Google Form URL, and map the form fields to the corresponding columns in your sheet.
Step 5: Run the Script
Run the script by clicking on the play button (triangle) in the Script Editor.
You might need to grant permissions for the script to access your Google Sheet and Form. Once done, watch the magic happen as your Google Form gets filled automatically.
After these steps, your Google Form will be populated with data from your Google Sheet, saving you from the monotonous task of manual entry.
Tips for Filling Google Form Automatically from Excel
- Double-check your column mappings to ensure data goes into the correct form fields.
- Test your script with a small dataset first to make sure it works correctly.
- Utilize Google’s logging features to debug any issues that arise.
- Make sure your Google Form is set to accept responses.
- Periodically update your script to adapt to any changes in your Google Form.
Frequently Asked Questions
Can I automate multiple Google Forms from one Excel sheet?
Yes, you can modify the script to handle multiple forms by adding additional URLs and mappings.
Is it secure to use scripts in Google Sheets?
Yes, but always review the script permissions and avoid sharing sensitive data.
Can I schedule the script to run automatically?
Absolutely, use Google Apps Script's triggers to schedule your script.
What happens if new data is added to the Google Sheet?
You can rerun the script or modify it to detect and submit only new entries.
Can I use this method for other types of forms?
This method is designed for Google Forms, but similar approaches can be used for other services.
Summary
- Convert Excel to Google Sheets.
- Create Your Google Form.
- Open the Script Editor.
- Write the Script.
- Run the Script.
Conclusion
Automating the process to fill Google Form automatically from Excel isn't just a time-saver; it's a game-changer. By following these steps, you'll streamline your workflow and minimize the risk of errors. While it might seem a bit technical at first, the payoff is well worth the effort. Once set up, this automation will free up your time for more critical tasks.
If you found this guide helpful, don’t stop here! Dive into more advanced scripting or explore other Google Apps functionalities to further optimize your tasks. Happy automating!

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.