2020-01-13

In this tutorial, I want to demonstrate the following:

  • How to create a form with Microsoft Forms.
  • How to synchronize a Forms response between a Form and Microsoft Excel.

If you prefer, you can also watch the video here:

If you’ve not used Microsoft Forms, I strongly recommend you take a look at it. It’s a straightforward tool that allows you to gather feedback from users from within your organization and also externally.

Create a new form with Microsoft Forms.

Let’s get Microsoft Forms running by navigating to “https://forms.microsoft.com.” Once it’s loaded, login in with your Office 365 credentials.

From within Microsoft Forms, select the option to create a new form and call it “The Excel Summit Sports Quiz.” At this point, you can optionally customise your form with colors and images.

In this tutorial, let’s pick a theme to make it look a little more exciting on the right-hand side of the top toolbar and select “Theme.” You can choose whatever you prefer, but I am going for a brown theme.

Once you’ve given the Form a title and made it look more exciting, you will now need to add some questions. As you create the questions, you will notice that you can have many different types of questions.

As we’re not going too deep with Forms, I am going to use several “choice” questions. Our form is intending to survey the respondents to see who their favorite sportsperson is across several sports.

Add three choice questions as follows:

One of the benefits of Microsoft is that it’s a WYSIWYG (What You See Is What You Get) editor, meaning that as you design your form, it’s very close to what a respondent will see.

Once your form is complete, we now need to get some responses! To this, click the “Share” button on the top menu.

At this point, you can see we have two options:

  • Anyone with the link can respond – meaning that anyone in the world can answer.
  • Only people in my organization can respond – meaning that only people who are in your organization’s Azure Active Directory can fill in the form.

I love the first option, as this means you have a very cool way for people externally to interact with your business. When the data comes into Microsoft Forms, you can quickly forward it on to other services such as SharePoint or Excel (see the rest of this tutorial).

Click “Anyone with the link can respond” and click “Copy.”

To prove it works for anyone, load up an incognito browser (Chrome) or InPrivate (Edge) and paste the link into it. You will be presented with the form, as illustrated below.

Now fill in Form, choose your favorite sportspeople and click “Submit.”

That’s it! You have now created a survey, and the response will have been saved inside of Microsoft Forms.

Analyzing the form response data.

Navigate back to the browser tab where you edited the form, and you should see you have a new response.

Here is an example of the Response (accessible by clicking on “Responses”):

You can also click the “Open in Excel” link. If you do, it will look something like this:

I am pretty sure you will agree that it was not only speedy but straightforward to go from nothing to a running form. As easy as it is, there are a few reasons why you would want the survey responses sent into another data store such as SharePoint or Excel. Here are some that come to mind:

  • You may have an existing Excel Spreadsheet, and you’d like to supplement it with the responses.
  • You may want your Team to be alerted to the response in Microsoft Teams.
  • You may want to filter, sort, and share the responses with your team in SharePoint.
  • You may want to share the live responses with your team as they come in. If you wanted to do this with Forms, you’d need to give everyone permission to see the responses and ask them to keep downloading the spreadsheet.

There will be many more use cases where you need the survey responses outside of Microsoft Forms. The next part of this tutorial explains how we are going to automatically send the answers from Forms to an existing Excel Spreadsheet.

How to synchronize a Forms response between a Form and Microsoft Excel.

To get around the drawbacks of keeping the data in an isolated spreadsheet, created by Forms, we’re now going to look at another Office 365 service called Power Automate.

Power Automate (previously Microsoft Flow) is an automation tool that allows you to pass data between one or more services. It can be configured to run on various triggers such as:

  • When a new SharePoint list item is created, or
  • When a new Form response is received

When the trigger (event) occurs, Forms will listen to it and carry out steps that you specify.

I like to think of Power Automate as being the “glue” between all of Microsoft’s services.

That’s a very rapid intro to Power Automate and you can find many more comprehensive articles on the Collab365 Community. Now it’s time to create a Flow within Power Automate that passes the response data as it comes into our Excel Spreadsheet.

Create an Excel Spreadsheet from within Microsoft Teams

Before we get started with creating the Flow within Power Automate, we need to store a spreadsheet in a destination that we can “see” from our Flow. You can either store your spreadsheet within OneDrive for Business or within a “normal” SharePoint site. However, in this example, we’re going to use Microsoft Teams.

Please note: If you don’t use Teams, then go ahead and store it a SharePoint document library or save it to the OneDrive for Business.

Steps:

Open Microsoft Teams and navigate to a Team that you would like to create the Excel spreadsheet within.

Click on a Channel and navigate to the “Files” Tab.

On the “Files” tab, select “Add new Excel Spreadsheet.”

Once you’ve done this, give your Spreadsheet a memorable name as you will need to use that in Power Automate later on.

When your Spreadsheet has been created, open it, and add the following values into three adjacent cells:

  • Best Footballer
  • Best Rugby Player
  • Best Tennis Player

Now highlight the three cells and choose “Insert” > “Table”

On the dialogue window that is then displayed, select “My table has headers” and click “OK.”

You should now see your spreadsheet looking something like this :

Excel has now created a data table that Power Automate can automatically send data to. As you will need to refer to the name of the Excel Table in your Flow, I strongly recommend you rename it to something more meaningful. At the time of writing this, it’s not possible to rename a table using Excel Online, so you need to do using the desktop version of Excel. So open the spreadsheet in desktop Excel and rename it.

Here’s a quick snippet of how you would achieve that:

That’s all the setup work we need to do in Excel, for now, so let’s work on getting the data from Forms into Excel via Power Automate.

Create the Flow in Power Automate

For the next part of the tutorial, navigate to a browser and open up https://flow.microsoft.com. Once it’s loaded, click “Sign in” and use your Office 365 credentials.

Steps:

  • From the menu on the left, select “My Flows.”
  • Select “Create.”
  • Select “Automated Flow.”

Now, we’ve initiated the creation of an automated flow we need to give it a name and select the trigger. The trigger defines when the flow starts, so in our case, we need it “wake up” and run when a new Microsoft Forms response is created.

Select the options as outlined in the following image.

Once you’ve filled in the dialog, hit “Create.” You will then be taken a designer canvas with just one trigger defined like this. Select the form you just created in the dropdown and click “New step.”

In the New step, we need to search for “Forms,” select “Microsoft Forms” and then choose “Get response details” (as illustrated below). This step allows us to get and reference the incoming Forms response so that we can use it in a later step.

Once you’ve added the “Get response details” action to the canvas, you need to select the same form as in the first step and also set the “Response Id” to the “List of response notifications Response Id.”

If we saved and ran the flow now, it will do nothing more than run when a new response is submitted. It won’t do anything useful with the data. To continue adding functionality to it, we need to add another step, which will allow us to take the reference to the forms response (just created by the end-user) and send it over to Excel Online.

Once you’ve hit “New step,” please select the “Excel Online (Business)” option:

Then select the spreadsheet created in the previous section (using Microsoft Teams) and set the values in the data table.

From the list below the Excel Online (Business), choose the option to “Add a row into a table.”

The values to enter on this next step are pretty self-explanatory. You need to find the location, document library and file name of where you stored the Excel Spreadsheet. You then need to choose the table name that you created.

If everything worked, you should now see your column headers, as shown below.

Next, we need to tell the step where to get the “Best Footballer Player,” “Best Rugby Player,” and “Best Tennis Player” from. To do this, click on “Best Footballer” in the Power Automate step and you should see a selection box automatically appear to the right as follows:

Click in each of the Footballer, Rugby and Tennis players and select the Forms field on the right. Once you’ve finished, it will look like this.

That’s it! Save the form and now go and add a response to your Microsoft Form and then check it got piped into the Excel Spreadsheet. If it did, you should see something like this.

(Visited 32,250 times, 159 visits today)

About the author 

Mark Jones

Collab365 Founder helping people learn Microsoft 365 via these: 👉 Collab365 Summits - Massive virtual conferences for Microsoft products 👉 Collab365 Today - Aggregation site for the best community blogs 👉 Collab365 Community - Huge blog site including plenty of Microsoft content I want to provide a friendly online community, where we can learn and grow together: 👉 365ers - coming very soon!

Leave a Reply

  1. You can achieve a similar result using the Move to Group option in Forms. When you move a form to a group the output is immediately shared to an Excel file within the Sharepoint group documents library and the data is automatically updated as new forms are completed.

  2. This works for Forms, but not as a Quiz option in forms right? I am a teacher and the pupils fill in the quiz and it marks their work. Is there a way of collecting their results directly into a Excel rather than going into the form to download the Excel?

  3. Great walk through! i have been searching the web for something along these lines. I still have a couple more steps in the FLOW that i need to complete after inserting rows into a table.

    I am trying to create a workflow for when my sales reps “turn in” a new deal all they have to do it complete a FORM (that is linked to a Tab in TEAMS) and as a result; the appropriate docs get generated and forwarded to the appropriate people. But, it’s important that another rep can use that same form within teams and “create” their own independent “deal paperwork”.

    1. in my excel workbook, i have formulas set to take the answers from the form to fill in a worksheet on another tab within the same workbook. However, i need to have to have that “copied” to a new workbook.

    2. I then need that new workbook to be copied and to a specific email group.

    3. i need to be able to “rinse and repeat” these steps for multiple Sales Reps submitting forms.

    I tried finding a step in PA that would allow me to “save a copy” and then automatically forward but not having any luck.

  4. Is it possible to utilize this with forms that are in “Group Forms” instead of my own personal forms? I’m trying to ensure redundancy with ownership, as I run a form but will not be permanently on the team I am currently operating on.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

2 Free Ebooks: How to govern Microsoft teams 

Download your 2 free Microsoft Teams governance Ebooks and learn the steps necessary to create a bullet-proof governance strategy.