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 / addDays using Excel fi...
Power Automate
Answered

addDays using Excel fields

(0) ShareShare
ReportReport
Posted on by 15

Hello! Newbie at power automate 🙂 I am building a simple flow using the For a Selected Row template on excel to create tasks on Asana. I want to take the Date field on the excel table and use it with addDays() to create a new duedate on Asana but it keeps giving me errors. I've tried searching onto here for solutions but none of them seems to work. Would anyone have any ideas on a workaround? Thank you in advance!

JMDel_0-1715066337401.png

 

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

    Hi @JMDel ,

    Flow reports an error that the value you provided is empty, which means there are empty rows in your field, so I used an if statement.

    If the field is empty, convert it to null. If it is not empty, add the number of days you want and format it into yyyy-MM-dd.

    Please try this expression:

    if(empty(filed),null,adddays(filed,number,'yyyy-MM-dd')

     Best Regards,

    Sunshine Gu

  • JMDel Profile Picture
    15 on at

    Hi @v-yetonggu-msft,

     

    Thank you for the code! 

     

    Its giving me expression is invalid 😞

  • v-yetonggu-msft Profile Picture
    on at

    Hi @JMDel ï¼Œ

    Could you please provide a screenshot of your flow control and the field names you use?

     

    Best Regards,

    Sunshine Gu

  • JMDel Profile Picture
    15 on at

    Hi @v-yetonggu-msft ,

     

    This was my very first input on the formula

    JMDel_0-1715068458938.png

    The field on excel is named 'Release Date'

     

    Thank you!

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @JMDel ,

    Okay, I know what you mean.

    Please try this expression again:

    if(empty(triggerBody()?['entity']?['Release Date']),null,addDays(triggerBody()?['entity']?['Release Date'],6,'yyyy-MM-dd'))

    Best Regards,

    Sunshine Gu 

  • JMDel Profile Picture
    15 on at

    Hi @v-yetonggu-msft ,

     

    It worked, thank you!

     

    Just an additional question, when my excel has values how can I get it to calculate using these dates on excel instead of having it as null? 

    JMDel_0-1715069406065.png

     

    Thank you!

  • v-yetonggu-msft Profile Picture
    on at

    Hi @JMDel ,

    The first thing to do is to make sure that your 'Release Date' column meets the date format that exists in Excel.

    vyetonggumsft_1-1715069889052.png

    Please do not create a format yourself, otherwise the date column cannot be calculated in flow.

     

    Best Regards,

    Sunshine Gu

     

  • JMDel Profile Picture
    15 on at

    Hi @v-yetonggu-msft ,

     

    Noted on that, thank you so much! 🙂

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