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 / How to recover cells v...
Power Automate
Unanswered

How to recover cells value on excel

(0) ShareShare
ReportReport
Posted on by

Hi everyone, How can I make a flow recovering cell content ? 

Please, see my two screenshots for ilustrate my question. 

Here is my entry data, a table with 2 columns ans 3 rows ans a cell with a table ID in "E2" with yellow highlight

ProtoSup_0-1692172650730.png

how can i create line with thoses values in this list ? :

ProtoSup_2-1692173381551.png

The title colums must contain the "E2" yellow field and juste the Z item have quantity to inform in the list.

Thanks in advance for all your advices.
I'm ready to give you kudos !!

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @ProtoSup,

    Do you want to get cell value to populate the column in SharePoint list?

    You can use the Run Script action.

    vmingkzmsft_0-1692176173294.png

    vmingkzmsft_1-1692176247093.png

    function main(
     workbook: ExcelScript.Workbook,
     sheetName: string,
     cellAddress: string
    ) {
     let sheet = workbook.getWorksheet(sheetName);
     let cellValue = sheet.getRange(cellAddress).getValue();
     return cellValue;
    }

    vmingkzmsft_2-1692176304957.png

    And you can use the same method to get other cell's value and populate in list.

     

     

    Best Regards,
    Kyrie

  • ProtoSup Profile Picture
    on at

    Thanks @v-mingkz-msft , I just realized, my excel file was not in table format, I can't use theses scripts blocks. Have another advice ? possible to have cell data with cordinates ? I most to recover few cell values, i can put coordinates directly in the script, no problem...

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @ProtoSup,

    Running scripts does not require a table format. Please try.

  • ProtoSup Profile Picture
    on at

    ok i'll try and let you know, thanks for the help @v-mingkz-msft 

  • ProtoSup Profile Picture
    on at

    @v-mingkz-msft , how to adapt this script to search multiples cels ? fors 3 differents cells for exemple ? It's not optimal to duplicate 3 times the action bloc ...

  • ProtoSup Profile Picture
    on at

    @v-mingkz-msft , I have another problem, the 'Run script' bloc can't find my file while the 'Get File content using path' find the file... How can i fix this error by add the direct or dynamic url to the file ? 

     

    Thanks 

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @ProtoSup,

    You can try to copy the file path from get file content and paste to run script.

    vmingkzmsft_1-1692264015313.png

    vmingkzmsft_0-1692263955485.png

     

    Best Regards,

    Kyrie

     

  • ProtoSup Profile Picture
    on at

    @v-mingkz-msft Another problem with the run script bloc : 

    ProtoSup_0-1692264635058.png

    Thanks again

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @ProtoSup 

    Could you please show the screenshots about your run script action in edit mode?

  • ProtoSup Profile Picture
    on at

    yes, it's my flow : @v-mingkz-msft 

    ProtoSup_0-1692268524252.png

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard