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 / Write to excel workshe...
Power Automate
Answered

Write to excel worksheet all from row 2 to last row

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

 

I want to be able to write 'Commercial' in all rows to the last row in column 20.  Write to excel only allows me to do this to a certain cell.  Can this be done?

 

Thanks

I have the same question (0)
  • Pochoide Profile Picture
    111 on at

    Hi @craigmon, you can get all the rows from the table, then loop over them using its output and updating the corresponding records to 'Commercial'. Also, you could add a condition if you need to except any row.

    This flow worked for me:

    gabrielq_0-1678461653708.png

     

     

  • craigmon Profile Picture
    on at

    Thanks, can this been done is PAD?

  • Pochoide Profile Picture
    111 on at

    @craigmon for PAD it's very different. I don't know much about PAD, but I got it working with this flow

    Pochoide_0-1678468472805.png

    Hope it helps!

     

  • Verified answer
    Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Here is a sample flow.

    Kaif_Siddique_0-1678475686093.png

     

    If I have answered your question, please mark my post as Solved.

    If you like my response, please give it a Thumbs Up.

     

    Regards

    Kaif

  • craigmon Profile Picture
    on at

    Thanks so much for this. all works except I cant figure out how you have added 'FirstFreeRowOnColumn - 1'.  I can only use FirstFreeRowOnColumn otherwise I get errors.

    loop.PNG
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Get first free row on column from Excel worksheet - Retrieve the first free row, given the column of the active worksheet. and the output variable produced is FirstFreeRowOnColumn(i.e. last rows +1).

    For example if a column has 10 rows then output will be 10(last rows) +1(first free row) = 11. Thats why 1 is substracted from FirstFreeRowOnColumn( FirstFreeRowOnColumn -1) to find the last row. 

     

    Kaif_Siddique_1-1678732558863.png

     

    If I have answered your question, please mark my post as Solved.

    If you like my response, please give it a Thumbs Up.

     

    Regards

    Kaif

  • craigmon Profile Picture
    on at

    Great thank you.  All works as expected. Appreciate the help

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard