Skip to main content
Community site session details

Community site session details

Session Id : fHd82FnoCLVvgDBCBfELe5
Power Automate - Building Flows
Answered

Comparing date in an excel sheet with today's date

Like (0) ShareShare
ReportReport
Posted on 15 May 2024 12:42:56 by 4

Hi,

 

I have an Excel sheet with names in one column, emails in another and a date column with format "dd-MM-yyyy" (for instance 19.05.2024 for May 19th 2024). I am setting up a flow to loop through the date column and if the date is equal to today's date, then the flow should tag the person in a channel post in Teams with the email column.

 

Everything is working well except for the part comparing the dates. I look at the raw output in Power Automate and I do not get any matches with today's date because the format of the date in the Excel sheet is read as "45341" for instance. I have tried to do the comparison by writing formatDateTime("DateColumn",'dd.MM.yyyy') is equal to formatDateTime(utcNow(),'dd.MM.yyyy') but that does not work either. The flow just runs without any matches.

 

Any ideas? I have tried to format the column in the Excel sheet in different ways, short date, text, number, but it does not work.

  • andmik Profile Picture
    4 on 16 May 2024 at 06:29:31
    Re: Comparing date in an excel sheet with today's date

    Thanks! I had to add

    formatDateTime([DateField],'yyyy-MM-dd')

    as well in the condition step. It works now!

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 16 May 2024 at 04:39:48
    Re: Comparing date in an excel sheet with today's date

    Hi @andmik,

    Here are two tips for your reference:

    1). You need to configure the List rows present into a table action as below:

    vqiaqimsft_0-1715834034893.png

    2). Configure the condition as below:

    vqiaqimsft_1-1715834360083.png

    formatDateTime(utcNow(),'yyyy-MM-dd')

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Loading complete