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 / How to update rows in ...
Power Automate
Unanswered

How to update rows in an excel instead of appending if the rows already exists for that week?

(0) ShareShare
ReportReport
Posted on by 9

I have an excel file in which rows are being copied and appended in it once every week with a timestamp column. 

I want the values in those rows to be updated (or deleted and added again) if the flow is manually run for a second time that week instead of adding duplicate rows for that week. 

 

How do I go about doing this? 

 

Thank you in advance. 

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

    Hi @afaro053 ,

    I did a test for your reference.

    In my scenario:

    The ID columns in my two tables are one-to-one correspondence and will not change, only then can the copy table and update the table uniquely correspond to the update and create new rows.

    My Copied Table:

    vyetonggumsft_4-1710812135725.png

    My Updated Table:

    vyetonggumsft_3-1710812081115.png

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_5-1710813002584.png

    vyetonggumsft_6-1710813058373.png

     

    ID eq '@{items('Apply_to_each')?['ID']}'

     

    vyetonggumsft_10-1710813993378.png

     

    length(outputs('List_rows_present_in_a_table_2')?['body/value'])

     

    The Result:

    vyetonggumsft_9-1710813478087.png

    Best Regards,

    Sunshine Gu

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