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 / Ignore blank date cell...
Power Automate
Unanswered

Ignore blank date cells in excel

(0) ShareShare
ReportReport
Posted on by 105

Hi

 

How do I amend the following code so it ignores blank cells in Excel. The code works fine when every cell has a date in it but fails when there are blank cells.

 

@Anonymous(equals(outputs('TodaysDate'),addDays('1899-12-30', int(item()?['Date1']), 'dd/MM/yyyy')),equals(outputs('TodaysDate'),addDays('1899-12-30', int(item()?['Date2']), 'MMMM')))

 

Basically I am using power automate to find if todays date is equal to a date in an excel table and if it is, send an html table in an email. eg.

 

Todays date = August

 

Excel spreadsheet table

 

TypeDate1Date2
AAugustMarch
BSeptemberJune
CMayAugust
D July

 

The email would only include 'A' and 'C'. At the moment it crashes because 'D' Date1 is blank

Categories:
  • Fardy_MADI_2 Profile Picture
    334 Super User 2024 Season 1 on at

    Hi @AM1974,

     

    Try this formula :

    if(equals(length(YourDate),0),null,YourDate)

     

    Hope this will hepl you 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard