Skip to main content

Notifications

Dynamics 365 general forum

adding formula to template

Posted on by

I am trying to add a formula to an excel template and it is not working. The formula is to get the "closest milestone date that is not in the past". 
this is from the excel document (not yet in Dynamics)

In excel this is the formula, 

{=IF(MIN(IF(SSBPIPTable[@[1 mo Milestone]:[48 mo Milestone]]>=TODAY(), SSBPIPTable[@[1 mo Milestone]:[48 mo Milestone]]))=0, "N/A", MIN(IF(SSBPIPTable[@[1 mo Milestone]:[48 mo Milestone]]>=TODAY(), SSBPIPTable[@[1 mo Milestone]:[48 mo Milestone]])))}


3681.Next-Milestone.png


When I try to add to the template, I am getting data validation errors on the field. 
I have set up ranges "milestone" on the columns 1 mo -48 mo milestones, and used the formula below and getting results in 1/0/1900. I questioned whether I needed the name of the column at the beginning as it is "=[@[Next Milestone]]"
=[@[Next Milestone]]=IF(MIN(IF(Milestones>=TODAY(), Milestones))=0, "N/A", MIN(IF(Milestones>=TODAY(), Milestones)))
8461.Next-Milestone-on-template.png


This formula without the column name in the beginning: =IF(MIN(IF(Milestones>=TODAY(), Milestones))=0, "N/A", MIN(IF(Milestones>=TODAY(), Milestones))) results in #VALUE!

Can anyone help with what this formula would be written on the template?

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: adding formula to template

    Hi BritB,

    First of all, please note that the cell format and column headers in the Excel template cannot be modified.

    Then, when we create Excel formulas, please don't use column titles or cell numbers. Instead, use the table column names, and define names for cells or cell ranges.

    The format of the range name is @[name]. If we want to make a range of cells, please use this format. (Refer to this article.)

    Please refer to this article for how to define and use names in formulas: https://support.office.com/en-us/article/define-and-use-names-in-formulas-4d0f13ac-53b7-422e-afd2-abd7ff379c64

    Hope this helps.

    Best Regards,

    Lu Hao

  • BritB Profile Picture
    BritB on at
    RE: adding formula to template

    would that be the place for the formula to work in Dynamics template? It works great in an excel document but putting that in the Dynamics 365 template is not working. Feel like I'm entering it wrong.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: adding formula to template

    Hi BritB - Have you visited Microsoft's Tech Community? You can also post your question about Excel or search for solutions related to your issue.

    Thank 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans