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 Automate
Unanswered

Write the excel data

(0) ShareShare
ReportReport
Posted on by

using power automate desktop ,When am trying to write the excel data, it is writing after 14 rows. i used firstfreerow , it should write immediately after column name. but why it is writing somewhere else. can anyone suggest me what to do. Thank you n advance

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hello @ajaykumar11111 

     

    Would you be able to share some screenshots of how the input looks like, how the actions are and how the output is showing up so that it will give a better idea?

     

     






    -------------------------------------------
    Help fellow beings find relevant posts.
    Upvote to a supporting response.
    Mark as solution to an answer.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @ajaykumar11111 

     

    Looks like the same situation as below post. Maybe you have something invisible in your cells.

    Re: not getting correct values from get first free... - Power Platform Community (microsoft.com)

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Same as https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Add-Row-to-Excel-from-a-Form-on-random-row-instead-of-next/m-p/1270735#M6866

     

    The solution is below:

     

    Get Last Row only works if all data/formatting is cleared from all blank cells extended below the bottom of your data.

    For instance, if you manually were to open this workbook, and press Ctrl + End, which cell gets selected? My guess is the last column on row 199, which is why it is putting the next available row as 200.

     

    To clear all blanks, do this with your bot:

    Send Keys {Control}(a) #Select All

    On the Home Ribbon, click Find & Select, Go To Special #use the recorder if you need to walk the bot through this

    MichaelAnnis_0-1632235097077.png

     

     

    Blanks -> OK #If you can't find the window selector for "Blanks", use Send Keys {Alt}(k) instead

    MichaelAnnis_1-1632235097186.png

     

    Again on the Home Ribbon #with all the blank cells highlighted

    Click Clear -> Clear All

    MichaelAnnis_2-1632235097157.png

     

    Then "Select cell A1"

    Then "Save Excel".

     

    This will reset the last row, so when you use "Get Last Row" command in PAD, it will actually get the last row of data and not some ghost row down below.

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 261 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 185

#3
Haque Profile Picture

Haque 168

Last 30 days Overall leaderboard