Hello Community,
How can I get a duration calculation between 2 dates to ignore or not count weekend days??
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
User | Count |
---|---|
39 | |
26 | |
22 | |
20 | |
15 |