web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Populate Excel Spreads...
Power Apps
Unanswered

Populate Excel Spreadsheet from Power App?

(0) ShareShare
ReportReport
Posted on by 27

I have a specific spreadsheet that I need to populate. Unfortunately, the end result has to be a spreadsheet, and the Power App will serve as a front-end to input and validate the data. The spreadsheet could be dropped into OneDrive when it's done.

 

Is it possible to use a Power App to input data into Excel cells from an already-created spreadsheet?

Categories:
  • RedBeardDev Profile Picture
    59 on at

    Should be able to use the Table action and add that to excel

  • jlr89 Profile Picture
    27 on at

    That's what I experimented with, but the Excel data isn't a table, just standard cells. I don't have any latitude to alter the Excel spreadsheet (if I had it my way, I wouldn't use a spreadsheet for this at all).

  • RedBeardDev Profile Picture
    59 on at

    Would you be able to convert the excel to a table? Using the insert>table option in the excel ribbon?

  • jlr89 Profile Picture
    27 on at

    No, because the Excel spreadsheet is used with an RPA bot, and the data has to be fed into it as plain, non-table, cells, apparently.

  • RedBeardDev Profile Picture
    59 on at

    Not sure if there is an action in power automate for removing table, but, can you...

    1. Create a new excel file (as table) from existing excel.

    2. Add the rows

    3. Remove table, keeping data. See link below

     

    The link below is for Removing table manually, would need equivalent in power automate...

    https://www.ablebits.com/office-addins-blog/excel-tables-styles/#:~:text=templates%2C%20click%20Clear.-,Tip.,select%20Table%20%3E%20Convert%20to%20Range.

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @jlr89 

     

    First add Excel as a data source:

    SpongYe_0-1696460204930.png

     

    I think you're looking for the Patch function?

    Word of advice though avoid spaces in column names if you can - but assuming your text input is called "TextInput" and your name column in Excel is called "NameColumn1";

     

    For a new capture you want;

    Patch(
     ExcelSource, 
     Defaults(ExcelSource), 
     {NameColumn1: TextInput.Text, NameColumn2: TextInput2.Text}
    )

     where ExcelSource is the name of your Excel connection, and TextInput is whatever you're using to store the input of the powerapps.

    "Defaults" tells patch you want to create a new record and to use the Default data properties for each column in the table - this record will automatically be appended to the end of the Excel table.

     

    If you wanted to update an existing record, you'd need to tell it which record to update first - so assuming that the name is unique, you could do the following;

    Patch(
     ExcelSource, 
     LookUp(ExcelSource, NameColumn=TextInput.Text), 
     {NameColumn1: TextInput.Text, NameColumn2: TextInput2.Text}
    )

     

    Hope this helps,

    Source: https://powerusers.microsoft.com/t5/Building-Power-Apps/Write-and-append-to-an-Excel-file/td-p/131194

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard