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 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:
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 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,187 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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard