Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9704

Google Sheets - duration between two specific times

$
0
0

I'm having a little trouble writing a formula to measure duration between two specific times within a time range.

i.e. 1300-1700

Total hours=4

Hours between 1530-1800=1.5

So far I've only managed to measure total duration between two times adjusting for past midnight with Total hours=1700-1300+(1700<1300)

I've trawled the net and attempted some IF functions to no avail. Below is a quick example.

Example spreadsheet: https://docs.google.com/spreadsheets/d/1QY4o7RMkWGcZPNUZg5OAETtmmlm07E6yyFjFnu0Jgac/edit?usp=sharing

Any help is much appreciated!


Viewing all articles
Browse latest Browse all 9704

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>