web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add new row in Excel f...
Power Automate
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

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

    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.

  • DL-23070615-0 Profile Picture
    on at

    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

  • lizbiz520 Profile Picture
    26 on at

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

  • gbeard Profile Picture
    5 on at

    @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. 

  • gbeard Profile Picture
    5 on at

    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.

  • EmillyMota Profile Picture
    2 on at

    Você conseguiu? Estou com esso erro também

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard