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
| Type | Date1 | Date2 |
| A | August | March |
| B | September | June |
| C | May | August |
| D | July |
The email would only include 'A' and 'C'. At the moment it crashes because 'D' Date1 is blank

Report
All responses (
Answers (