How do I convert an Excel formula to Sharepoint Calculated Field?

Kristen Thompson 1 Reputation point
2021-04-13T19:31:51.427+00:00

I have a couple of Excel formula's that I need to add into my SharePoint Lists. Below are the formula's as they are in Excel. I just need to know how I can change them to the appropriate syntax that will allow for a SharePoint List calculated column.

  1. =IF([@[Actual Completion Date]]="",NETWORKDAYS([@[Date Prioritised]],TODAY()),NETWORKDAYS([@[Date Prioritised]],[@[Actual Completion Date]]))
  2. See Formula attached
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,316 Reputation points
    2021-04-15T01:21:28.177+00:00

    Hi @Kristen Thompson ,

    The first formula:

    =ROUNDUP((IF(ISBLANK([Actual Completion Date]),DATEDIF([Date Prioritised],NOW(),"D")-(ROUND((DATEDIF([Date Prioritised],NOW(),"D"))/7,0)*2),DATEDIF([Date Prioritised],[Actual Completion Date],"D")-(ROUND((DATEDIF([Date Prioritised],[Actual Completion Date],"D"))/7,0)*2))),0)  
    

    87946-1.png

    87959-2.png

    There is no corresponding formula in SharePoint to lookup field values across another list. Therefore, the second Excel formula cannot be implemented in SharePoint Calculated columns.

    Thanks,
    Echo Du

    =====================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.