Please May I ask which is the microsoft lists formulas?

CKES (Christos Kesoglidis) 0 Reputation points
2025-02-24T15:49:45.62+00:00

Which is the formula to microsoft lists from excel:

excel : =IF(AND(ISNUMBER([@[Expected Approval for

SM]]);[@[IN / SM]]="SM");NETWORKDAYS.INTL([@[Expected Approval for

SM]];[@[Actual

Approval Date]];1)-1;IF(AND(ISNUMBER([@[Expected Approval for

Initial]]);[@[IN / SM]]="IN");NETWORKDAYS.INTL([@[Expected Approval for

Initial]];[@[Actual

Approval Date]];1)-1;""))

lists formula generated from AI and does not work: =IF(AND(ISNUMBER([Expected Approval for SM]);[IN / SM]="SM");NETWORKDAYS.INTL([Expected Approval for SM];[Actual Approval Date];1)-1;IF(AND(ISNUMBER([Expected Approval for Initial]);[IN / SM]="IN");NETWORKDAYS.INTL([Expected Approval for Initial];[Actual Approval Date];1)-1;""))

May I have your help please?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,367 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 50,561 Reputation points Microsoft Vendor
    2025-02-28T07:30:29.5233333+00:00

    Yes, you could combine these two formulas in one.

    In the Expected Approval calculated column,

    =IF([Submission Type]="Initial";IF(AND([RFI-V]="Yes";[RFI-A]="Yes";[Winter Clock Stop]="Yes");[Submission date]+128;IF(AND([RFI-V]="No";[RFI-A]="No";[Winter Clock Stop]="Yes");[Submission date]+42;IF(AND([RFI-V]="Yes";[RFI-A]="No";[Winter Clock Stop]="Yes");[Submission date]+60;IF(AND([RFI-V]="No";[RFI-A]="Yes";[Winter Clock Stop]="Yes");[Submission date]+80;IF(AND([RFI-V]="Yes";[RFI-A]="Yes";[Winter Clock Stop]="No");[Submission date]+111;IF(AND([RFI-V]="No";[RFI-A]="No";[Winter Clock Stop]="No");[Submission date]+25;IF(AND([RFI-V]="Yes";[RFI-A]="No";[Winter Clock Stop]="No");[Submission date]+43;IF(AND([RFI-V]="No";[RFI-A]="Yes";[Winter Clock Stop]="No");[Submission date]+63;""))))))));IF(AND([RFI-V]="Yes";[RFI-A]="Yes";[Winter Clock Stop]="Yes");[Submission date]+109;IF(AND([RFI-V]="No";[RFI-A]="No";[Winter Clock Stop]="Yes");[Submission date]+74;IF(AND([RFI-V]="Yes";[RFI-A]="No";[Winter Clock Stop]="Yes");[Submission date]+90;IF(AND([RFI-V]="No";[RFI-A]="Yes";[Winter Clock Stop]="Yes");[Submission date]+93;IF(AND([RFI-V]="Yes";[RFI-A]="Yes";[Winter Clock Stop]="No");[Submission date]+92;IF(AND([RFI-V]="No";[RFI-A]="No";[Winter Clock Stop]="No");[Submission date]+57;IF(AND([RFI-V]="Yes";[RFI-A]="No";[Winter Clock Stop]="No");[Submission date]+73;IF(AND([RFI-V]="No";[RFI-A]="Yes";[Winter Clock Stop]="No");[Submission date]+76;"")))))))))

    In the Days calculated column,

    =IF([Expected Approval]<[Actual Approval Date];DATEDIF([Expected Approval];[Actual Approval Date];"d")-INT(DATEDIF([Expected Approval];[Actual Approval Date];"d")/7)*2-IF(WEEKDAY([Actual Approval Date])<WEEKDAY([Expected Approval]);2;IF(OR(WEEKDAY([Actual Approval Date])=7;WEEKDAY([Expected Approval])=1);1;0));IF([Expected Approval]>[Actual Approval Date];-(DATEDIF([Actual Approval Date];[Expected Approval];"d")-INT(DATEDIF([Actual Approval Date];[Expected Approval];"d")/7)*2-IF(WEEKDAY([Expected Approval])<WEEKDAY([Actual Approval Date]);2;IF(OR(WEEKDAY([Expected Approval])=7;WEEKDAY([Actual Approval Date])=1);1;0)))))

    Result:

    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.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Emily Du-MSFT 50,561 Reputation points Microsoft Vendor
    2025-02-25T08:20:57.91+00:00

    You could use following formula in the SharePoint calculated column.

    =IF(AND(LEN([Expected Approval for SM])>0,[IN / SM]="SM"),DATEDIF([Expected Approval for SM],[Actual Approval Date],"d")-INT(DATEDIF([Expected Approval for SM],[Actual Approval Date],"d")/7)*2-IF(WEEKDAY([Actual Approval Date])<WEEKDAY([Expected Approval for SM]),2,IF(OR(WEEKDAY([Actual Approval Date])=7,WEEKDAY([Expected Approval for SM])=1),1,0)),IF(AND(LEN([Expected Approval for Initial])>0,[IN / SM]="IN"),DATEDIF([Expected Approval for Initial],[Actual Approval Date],"d")-INT(DATEDIF([Expected Approval for Initial],[Actual Approval Date],"d")/7)*2-IF(WEEKDAY([Actual Approval Date])<WEEKDAY([Expected Approval for Initial]),2,IF(OR(WEEKDAY([Actual Approval Date])=7,WEEKDAY([Expected Approval for Initial])=1),1,0))))

    Result:
    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.


  2. Emily Du-MSFT 50,561 Reputation points Microsoft Vendor
    2025-02-27T06:32:52.9433333+00:00

    You could use following formula in the SharePoint calculated column.

    =IF([Submission Type]="SM";DATEDIF([Expected Approval for SM];[Actual Approval Date];"d")-INT(DATEDIF([Expected Approval for SM];[Actual Approval Date];"d")/7)*2-IF(WEEKDAY([Actual Approval Date])<WEEKDAY([Expected Approval for SM]);2;IF(OR(WEEKDAY([Actual Approval Date])=7;WEEKDAY([Expected Approval for SM])=1);1;0));IF([Submission Type]="Initial";DATEDIF([Expected Approval for Initial];[Actual Approval Date];"d")-INT(DATEDIF([Expected Approval for Initial];[Actual Approval Date];"d")/7)*2-IF(WEEKDAY([Actual Approval Date])<WEEKDAY([Expected Approval for Initial]);2;IF(OR(WEEKDAY([Actual Approval Date])=7;WEEKDAY([Expected Approval for Initial])=1);1;0))))

    Result:

    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.