Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Add new row in Excel from Google Sheets when doesn't exist already

(0) ShareShare
ReportReport
Posted on by

I'm trying to achieve something like this, sorry I'm still a newbie here...

1) My Google Sheet stores responses from a form.
2) Every hour my flow "gets rows" from that Google Sheet
3) Then, I list rows present in an Excel table, and add rows for each cell etc.

The problem is, I don't know how to filter rows from Google Sheets before they are copied into Excel.
I only want to copy new rows that do not exist in the Excel file already.

I'm trying to use the filter function, something like: If "email" or "ID" in Google sheets is equal to email/ID in Excel, then skip it. If not equal, then add new row in Excel.
But I always end up with all rows being copied multiple times. into the excel table.
Any suggestions?

step1.jpgstep2.jpg

  • EmillyMota Profile Picture
    2 on at
    Re: Add new row in Excel from Google Sheets when doesn't exist already

    Você conseguiu? Estou com esso erro também

  • gbeard Profile Picture
    5 on at
    Re: Add new row in Excel from Google Sheets when doesn't exist already

    I had a format on my date time field. Some of my dates were NULL so those records were being removed. 

     

    New issue in: my flow says it is complete even though it didn't add all the records (made sure to leave off filters this time). I can rerun the flow and it will add new records, even when the data hasn't changed. I tested with Excel in SharePoint and it worked as intended.

  • gbeard Profile Picture
    5 on at
    Re: Add new row in Excel from Google Sheets when doesn't exist already

    @v-LilyW-msft,

    Thank you! This helped me build something very similar with ESRI's Get Data from Feature Layer to populate a Google sheet. For some reason it is filtering some of my data in the loop, but I think that is unrelated. 

  • lizbiz520 Profile Picture
    26 on at
    Re: Add new row in Excel from Google Sheets when doesn't exist already

    This solution really helped however, I want to also update existing rows in the copied spreadsheet if any changes were made in the data source spreadsheet - I want to ensure any changes made to the original data is also reflected in the second spreadsheet but cannot figure out how to set the above flow up and also account for changes and update accordingly. Any help is appreciated. I've also posted my own post but am still awaiting any replies....

  • DL-23070615-0 Profile Picture
    on at
    Re: Add new row in Excel from Google Sheets when doesn't exist already

    Thanks for your response. I've been trying to test your solution, but I keep getting an error related to Google API, so I'm stuck at step 1.

    The error reads like:

    ---

    Flow save failed with code 'DynamicOperationRequestClientFailure' and message 'The dynamic operation request to API 'googlesheet' operation 'GetTable' failed with status code 'BadRequest'. This may indicate invalid input parameters. Error response: { "status": 400, "message": "Range (responses!P2:P) exceeds grid limits. Max rows: 16, max columns: 15\r\nclientRequestId: xxxxxx", "error": { "message": "Range (responses!P2:P) exceeds grid limits. Max rows: 16, max columns: 15" }, "source": "googledrive-we.azconn-we-01.p.azurewebsites.net" }'.

    ---

    I thought the original file could be too large, so I've reduced it to 10 rows, 10 columns, still same error. So, though I'm pretty sure your solution works, there's no way I can test on my account

  • v-LilyW-msft Profile Picture
    on at
    Re: Add new row in Excel from Google Sheets when doesn't exist already

    Hi @Dan_176 

    I set up a flow, you can refer to below screenshots to see if it helps.

    vLilyWmsft_12-1647308651962.png

    vLilyWmsft_13-1647308701666.png

    vLilyWmsft_6-1647307682662.png

    This is my test Google sheet

    vLilyWmsft_7-1647307805713.png

    This is my excel:

    vLilyWmsft_8-1647307824611.png

    After flow runs, the new row will be added to excel like below:

    vLilyWmsft_11-1647308146701.png

    Hope the content above may help you.

    Best Regards

    If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492