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

Frankelis De Jesús 0 Reputation points
2023-06-16T19:48:07.2633333+00:00

I have to calculate the following table to get the result %Efectividad:
User's image

I have the formula in Excel:

=SI(B2="",0,SI(1-((B2-A2)/30)>1,1,1-((B2-A2)/30)))

But you need it for a Sharepoint list.

It is the percentage difference between two dates for Sharepoint List.

Can you help me?

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | Excel | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-06-19T06:56:49.4466667+00:00

    Hi @Frankelis De Jesús ,

    Use this formula in the calculated column(%Efectividad):

    =IF(Date_Completed="",0,IF(((Date_Completed-Due_Date)/30)>1,1,(1-((Date_Completed-Due_Date)/30))))
    

    User's image

    The display effect is shown in the following figure:User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.