Forum Discussion
Ding080
Aug 09, 2022Copper Contributor
date range calculations
SOLVED G'day, all. I'm needing some help with calculating time between two date/time entries only if another cell in that row is filled, if not, leave blank. Date entry minus Date exit if RESULT col...
- Aug 10, 2022
The formula would have to return a text result:
=IF(AND(W11<>"",W11<>"OPEN"),INT(V11-B11)&":"&TEXT(V11-B11,"hh:mm:ss"),"")
HansVogelaar
Aug 09, 2022MVP
Assuming that the duration will never be more than 31 days:
=IF(AND(W11<>"",W11<>"OPEN"),V11-B11,"")
Format as dd:hh:mm:ss
- Ding080Aug 10, 2022Copper ContributorThank you, What if the duration is longer than 31 days? is there a formula that will cover both scenarios?
- HansVogelaarAug 10, 2022MVP
The formula would have to return a text result:
=IF(AND(W11<>"",W11<>"OPEN"),INT(V11-B11)&":"&TEXT(V11-B11,"hh:mm:ss"),"")
- Ding080Aug 10, 2022Copper Contributorexcellent, thank you 🙂