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 / Delete rows from a Exc...
Power Automate
Answered

Delete rows from a Excel sheet where the date is not current

(0) ShareShare
ReportReport
Posted on by 69

Hi All,

 

I'm working with a flow on a recurrence basis, the flow should;

 

1. Grab the file from the sharepoint drive

2. Attach the file to an email to be sent out

3. After the email has been sent, the excel spreadsheet should have all rows with dates older the present date removed

 

I've managed the getting and emailing of the file, however a bit stumped when looking at how to only remove the rows that have been added if the dates don't match up.

 

Here's what i'm working with now, any advice would be greatly appreciated!

 

The spreadsheet where i want to remove all data other than the headers;

Email stats example.png

 

Following the Emailing of the file;

 

List rows.pngformatDateTime(utcNow(), 'YYYY-MM-DD')formatDateTime(utcNow(), 'YYYY-MM-DD')

 

Hope this makes sense!

 

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

    Hi @ Yacob_hard,

     

     

    I have made a test on my side,please enter expression in the Condition as below:

    @not(equals(formatDateTime(items('Apply_to_each')?['Date & Time'], 'yyyy-MM-dd'), formatDateTime(utcNow(), 'yyyy-MM-dd')))

    The screenshot of my flow as below:

    Capture.PNG

     

    The flow would run successfully as below:

    Capture.PNG

     

    Please let me know if your problem could be solved.

     

    Regards,
    Alice Zhang

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard