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 / Add Row to Excel from ...
Power Automate
Answered

Add Row to Excel from a Form on random row instead of next available

(0) ShareShare
ReportReport
Posted on by 2

We have a Office 365 form which collects the data and then using Power Automate to add row in a Excel table. For some reason the data being inserted to row# 200 on wards instead of next available row which is row#28.

 

Any assistance would be much appreciated!

 

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    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-1631644837375.png

     

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

    MichaelAnnis_1-1631644901111.png

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

    Click Clear -> Clear All

    MichaelAnnis_2-1631645015100.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.

     

    Best of Luck!

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
11manish Profile Picture

11manish 275 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 178 Super User 2026 Season 2

Last 30 days Overall leaderboard