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 / Get most recent date f...
Power Automate
Answered

Get most recent date from Excel table

(0) ShareShare
ReportReport
Posted on by 20

Hi All, 

 

This is probably pretty simple, but...

 

I have an excel table that has a list of dates, I would like to grab the most recent date that list and put it into the body of email. I think I am close going by the photo, but cant seem to get it figured out. 

 

Thanks!

 

 

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

    Hi , @WheelerS84 

    According to your description, you want to get the most recent Date in your Excel.

    Here are the steps you can refer to :
    (1)This is my test data:

    vyueyunmsft_0-1699407632399.png

    (2)This is my flow:

    vyueyunmsft_1-1699407746843.png

    int(first(split(replace(dateDifference(item()?['Date'],utcNow()),'-','') ,'.') ) )

    first(sort(body('Select'),'DateDifference'))?['Date']

     

    And the result is as follows in "Compose" action:

    vyueyunmsft_2-1699407937962.png

    You can also use the FormatDateTime() function to get the format date you want in your side .

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you.


    Best Regards,

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard