Hello Community, How can I get a duration c...

Hello Community,

How can I get a duration calculation between 2 dates to ignore or not count weekend days??

0 6 377
6 REPLIES 6

Hi is this something that can be done or s it very complicated to accomplish

Is this Possible??@Aleksi_Alkio Translate

Yes itโ€™s possible but not very simple

@Aleksi_Alkio would I have to use many Ifs? Do you have a hint, Im getting better at more advanced expressions

@VICTOR_VERA This is a simplified formula for what youโ€™re asking, if it doesnโ€™t work completely then youโ€™ll have to look up a more complex one thatโ€™ll work for all cases. It seems to work for most cases, bar if you have start and end on same day, and some extreme edge cases.

1 + ((HOUR([End] - [Start]) / 24) * 5 - (WEEKDAY([Start]) - WEEKDAY([End])) * 2) / 7 - IF(WEEKDAY([End]) = 7, 1, 0) - IF(WEEKDAY([Start]) = 1, 1, 0)

All I did to create this formula was look up some code on something like Stack Overflow and then translate that code into Appsheet statements.

Make sure to use this in a virtual column.

Wow that worked like a charm, thank you so much, I now see light at the end of the tunnel +Jacob Lin

Top Labels in this Space