Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

  • JMDel Profile Picture
    15 on at
    Re: addDays using Excel fields

    Hi @v-yetonggu-msft ,

     

    Noted on that, thank you so much! 🙂

  • v-yetonggu-msft Profile Picture
    on at
    Re: addDays using Excel fields

    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
    Re: addDays using Excel fields

    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!

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: addDays using Excel fields

    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
    Re: addDays using Excel fields

    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!

  • v-yetonggu-msft Profile Picture
    on at
    Re: addDays using Excel fields

    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
    Re: addDays using Excel fields

    Hi @v-yetonggu-msft,

     

    Thank you for the code! 

     

    Its giving me expression is invalid 😞

  • v-yetonggu-msft Profile Picture
    on at
    Re: addDays using Excel fields

    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

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