Net duration between 2 dates AND hours

Hi,

I use this formula to calculate duration in minutes between two dates and time (see picture attached). Goal is to time delay of response between reception of email and answering email but to exclude hours people are not working.

Here is the formula to Start time : =IF(SUM(VALUE(LEFT(RIGHT([Date et heure du courriel du client]@row; LEN([Date et heure du courriel du client]@row) - 9); FIND(":"; RIGHT([Date et heure du courriel du client]@row; LEN([Date et heure du courriel du client]@row) - 9)) - 1))) = 12; 0; SUM(VALUE(LEFT(RIGHT([Date et heure du courriel du client]@row; LEN([Date et heure du courriel du client]@row) - 9); FIND(":"; RIGHT([Date et heure du courriel du client]@row; LEN([Date et heure du courriel du client]@row) - 9)) - 1)) * 60)) + SUM(VALUE(MID([Date et heure du courriel du client]@row; FIND(":"; [Date et heure du courriel du client]@row) + 1; 2))) + IF(RIGHT([Date et heure du courriel du client]@row; 2) = "PM"; 720; 0) + 1

And the formula to End time : =IF(SUM(VALUE(LEFT(RIGHT([Date & heure confirmation commande ou soumission]@row; LEN([Date & heure confirmation commande ou soumission]@row) - 9); FIND(":"; RIGHT([Date & heure confirmation commande ou soumission]@row; LEN([Date & heure confirmation commande ou soumission]@row) - 9)) - 1))) = 12; 0; SUM(VALUE(LEFT(RIGHT([Date & heure confirmation commande ou soumission]@row; LEN([Date & heure confirmation commande ou soumission]@row) - 9); FIND(":"; RIGHT([Date & heure confirmation commande ou soumission]@row; LEN([Date & heure confirmation commande ou soumission]@row) - 9)) - 1)) * 60)) + SUM(VALUE(MID([Date & heure confirmation commande ou soumission]@row; FIND(":"; [Date & heure confirmation commande ou soumission]@row) + 1; 2))) + IF(RIGHT([Date & heure confirmation commande ou soumission]@row; 2) = "PM"; 720; 0) + 1

Is there a way to remove from this duration the hours out of office so 63 hours for weekend (Friday 5PM to Monday 8AM) AND 14 hours from Monday to Thursday (6PM to 8AM next morning)

Thanks for your help :


Best Answers

«1

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!