Hi all,
I am trying to create a formula that does the following:
I would like Smartsheet to pick all the contracts that are "MSA" and "CDA/NDA" from the "Contract Type" column, and that were all signed between July 1st 2022 and June 30th 2023.
Once the conditions above are met, I would like Smartsheet to take the days that it took to draft these contracts based on the criteria above and spit out the average of days.
Essentially I want to know the average of days it took to draft MSAs and CDAs/NDAs at a given year. Can anybody help me create this formula? it's for a sheet summary.
I think this is the closer I got but I keep getting the #UNPARCEABLE error. Can anybody help me?
=IFERROR(CEILING((SUMIFS([Length of Drafting Contract]:[Length of Drafting Contract], [Contract Type]:[Contract Type], "CDA/NDA", [Final Executed Date]:[Final Executed Date], >=DATE(2023, 7, 1), [Final Executed Date]:[Final Executed Date], <=DATE(2024, 6, 30)) + SUMIFS([Length of Drafting Contract]:[Length of Drafting Contract], [Contract Type]:[Contract Type], "MSA", [Final Executed Date]:[Final Executed Date], >=DATE(2023, 7, 1), [Final Executed Date]:[Final Executed Date], <=DATE(2024, 6, 30))) / (COUNTIFS([Length of Drafting Contract]:[Length of Drafting Contract], "<>", [Contract Type]:[Contract Type], "CDA/NDA", [Final Executed Date]:[Final Executed Date], >=DATE(2023, 7, 1), [Final Executed Date]:[Final Executed Date], <=DATE(2024, 6, 30)) + COUNTIFS([Length of Drafting Contract]:[Length of Drafting Contract], "<>", [Contract Type]:[Contract Type], "MSA", [Final Executed Date]:[Final Executed Date], >=DATE(2023, 7, 1), [Final Executed Date]:[Final Executed Date], <=DATE(2024, 6, 30)))),1),"")