How to Submit Data From Power Apps to Excel?

A few days back, I was working on a Power Apps project where the client wanted to save form data into an Excel file. The requirement was simple: users should fill out a Power Apps form, click a submit button, and have all the data stored in Excel for reporting and sharing.

In this tutorial, I will explain how to submit data from Power Apps to Excel spreadsheet step by step with an example.

Submit Data From Power Apps to Excel

Let’s follow the instructions below to store Power Apps form data in Excel.

  1. Format an Excel sheet as a table.
  2. Power Apps connects a data source to OneDrive for Business.
  3. Insert a Power Apps Edit form and connect it to Excel.
  4. Submit Data From Power Apps to Excel.

Step 1: Format an Excel sheet as a table

I have an Excel file regarding Customer Details that has fields like:

Column NameData type
Customer IDText
Customer NameText
GenderChoice
Country And Area CodeText
Mobile NumberNumber
Emergency NumberNumber
EmailText
Submit Data from Power Apps app to Excel Sheet

Set up the Excel Sheet as Format As a Table.

Submit Data from Power Apps Canvas app to Excel

Once the Excel Sheet is ready, you need to provide the Table name [Customer_Details] under the Table Design below.

How to Submit Data from Power Apps Canvas app to Excel Sheet

Step 2: Power Apps Connect a data source to OneDrive for Business

Now, we will create a blank canvas app and connect the data source to OneDrive for Business in Power Apps:

  • Sign in to your Power Apps with your valid Microsoft 365 credentials.
  • Create a Power Apps Blank canvas app -> Select the + Add data -> Select a data source as OneDrive for Business -> Choose an Excel file [Customer Details.xlsx] as in the screenshot below.
Submit Data From Power Apps to Excel

Next, choose the Excel table [Customer_Details] -> Click on the Connect button. Once it is connected to the app, you will get a data source under the In your app drop-down, as shown below.

Submit Data From Power Apps app to Excel

Step 3: Insert a Power Apps Edit form and Connect Excel to it

On the Power Apps screen, insert an Edit form -> Set its Data Source property to:

Customer_Details

Where,

  1. Customer_Details = Excel table name
How to Add Data from Power Apps app to Excel

Then select the Edit fields option to add the required Excel fields.

How to Add Data from Power Apps app to Excel Sheet

The Power Apps form looks like the screenshot below:

How to submit data from Power Apps to a Excel file

Step 4: Submit Data From Power Apps to Excel

On the Power Apps screen, insert a Save icon/Submit button -> Set its OnSelect property to:

SubmitForm(frm_NewCustomer);
ResetForm(frm_NewCustomer)

Where,

  1. SubmitForm() = This Power Apps function helps us to save any changes in a form control to the data source
  2. frm_NewCustomer = Power Apps Edit Form Control
  3. ResetForm() = This Function resets the contents of a form to their initial values before the user makes any changes.
How to Submit Data From Power Apps to Excel Sheet

Once your Power Apps app is ready, save, publish, and preview the app. When a user enters a new record in the Power Apps edit form and clicks the save icon, the data will be submitted to the Excel sheet.

Submit Data From Power Apps app to Excel Sheet

This way, we can submit Power Apps form data to an Excel Sheet.

Conclusion

I trust this Power Apps tutorial helped you find a solution by explaining how to submit data from Power Apps to Excel.

We can easily connect an Excel table to a Power Apps edit form, and the SubmitForm() function can quickly submit data from Power Apps to Excel.

Also, you may like some more Power Apps tutorials:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…