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 Automate / fill out specific cell...
Power Automate
Unanswered

fill out specific cell in Excel from Sharepoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everybody

 

Is it possible to fill out specific Excel cells (for example "E8" cell) from  some SharePoint Library data?

(I want to fill out a new Excel template each time a new file is created in the SharePoint Library.)

 

Any help would be very helpful! Thank you in advance for your help!

 

best regards

Categories:
  • Yutao Huang Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Is the cell within a table in the Excel workbook?

     

    If it's within a table, maybe you can give it a try with the Update a row action of the Excel Online (Business) connector: https://docs.microsoft.com/en-gb/connectors/excelonlinebusiness/#update-a-row

     

    If the cell is not within a table, you can probably take a look at the new "Run script" action, where you can execute some Office Scripts to update any cell you want.

    flow-run-script-set-cell-value.png

     

    The script needs to be first created in Excel Online. Here is a possible script that could be used here:

     

    function main(workbook: ExcelScript.Workbook, value: string) {
     let sheet = workbook.getWorksheet("Sheet1");
     let cell = sheet.getRange("E8");
     cell.setValue(value);
    }

     

     

    A few links to learn more about the Run script action and Office Scripts in general:

     

    Hope this helps!

    Yutao

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard