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 / How to delete a row in...
Power Automate
Answered

How to delete a row in Excel after 7 days using Power Automate

(2) ShareShare
ReportReport
Posted on by 30
Hi,
 
I am trying to delete rows in excel if data is more than 7 days old. So far, here is my flow.
 
 
Here is the Excel headers. Not sure if this is helpful:
excel - more than 7 days.JPG
flow - delete after 7 days.JPG
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Instead of calculating the Days since using an excel formula, set up the condition to check if the date in your Excel table is more than 7 days old.
    Your date column in Excel is named Date. You can use the following structure:
    Expression:
    - left-hand side: `formatDateTime(triggerOutputs()?['body/Date'], 'yyyy-MM-dd')`
    - right-hand side: `addDays(utcNow(), -7, 'yyyy-MM-dd')`
  • ivan_apps Profile Picture
    2,189 Moderator on at
    Key column and Key Value is how to uniquely identify your row. In your case I assume the ‘Name’ column is unique and the value would be the name of the current row you are iterating through instead of ‘8’.
  • CheriV Profile Picture
    30 on at
    Hi @ivan_apps, I am a total newbie and do not understand how this will look like in Power Automate. 
     
    The reason I put Days Since is equal to 8 is because I am assuming that all data older that is at least 8 days old will be deleted. Will this not work?
     
    Should I change the condition? I am unsure what you mean by left side and right side.
     
  • Verified answer
    CheriV Profile Picture
    30 on at
    I figured it out! I removed the condition and went straight to delete a row. It worked!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard