Home » Advanced » Easy! Google Forms: Automatically Sort on Submit

Easy! Google Forms: Automatically Sort on Submit

Sort Your Google Forms Results Automatically

Google Forms is amazing, however it can be challenging to read Google Forms submission in a spreadsheet sometimes. You may need to make the columns wider, set word wrap, hide some columns, etc… The problem is that when you format your spreadsheet or sort your data any new form submissions do not have the formatting. You can easily fix this problem in 2 easy steps.

Step 1: Macros

After you get a couple of form entries, go to the spreadsheet of responses. Use the Tools menu to choose Record macro. Set word wrap, sort a column, make rows taller, etc… whatever you would like to do to format the spreadsheet.
Record Macro

Save your macro.

Step 2: Set up a Trigger

Don’t let this step intimidate you. It might look scary but it’s really fairly easy. Use the Tools menu to choose Script editor. You will see the code that was created from your recorded macro. You do NOT need to read or do anything with the code.

Use the Edit menu in the Script editor to choose “Current project’s triggers.”
Current project's triggers

This will launch the script hub for Google. Notice in the bottom right is a button to “Add trigger.” Click on this.
Add trigger to a google sheets

You will check 2 things on the trigger creator. For the first drop down box you want to make sure it is using the function for the macro you recorded. It will be what you named the macro but smashed together with no spaces. On form submit

The second thing you want to check is the last option “Select event type.” From that drop down menu you want to choose “On form submit.” So when the form is submitted, it triggers running your macro.

Save! That is it! From now on when a new form submission comes in your spreadsheet will be sorted and formatted how you like it!

Want to Learn More?

This activity is a very simple way to get into coding Google Apps Script. Essentially no coding required but you get to see the code behind the curtain. If you’re ready to take the next step to learn how to make your own code try one of my online Go Slow Workshops.




1 thought on “Easy! Google Forms: Automatically Sort on Submit”

  1. Pingback: Simple: Make a Pivot Table – Dinezh.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.