I have two date/time columns and need an equation to extract the duration in hours/minutes. I’d do it on the Google Sheet but new submissions create a new row so any formula on the sheet does not apply to new rows. Screen Shot 2020-07-20 at 9.48.07 AM|300x209
1 Like
I was doing the same today. Check below to calculate hours and minute components
=ARRAYFORMULA(HOUR(D2:D - B2:B))
=ARRAYFORMULA(MINUTE(D2:D - B2:B))
After you’re familiar with that you can try these too, hope it helps
This topic was inspired by our last community meetup, in which we talked about some formulas in Google Sheets and some people want to know more about QUERY, which was branded “The most powerful function in Google Sheets” by famous GSheets teacher Ben Collins.
So, what is QUERY, and why is it so powerful. Here’s a writeup on it, which hopefully would help many of you here in this community. Trust me, it would change so much how many of you “clean” your data in the future from raw data, in a very…
If you have not read part 1, below is the direct link so you can have a read at what QUERY is, and how it can help your case, whether it be building Glide apps or make your normal day work easier.
6/Dynamically sort your data using ORDER BY An ORDER BY claused can be used to dynamically sort your data after being queried, and you can change the column that is used to sort with just a letter.
By default, the ORDER BY sorts ascendingly, and it can grab the data type in the column automatically.…
1 Like
I would suggest to use “CopyDown” add on in Google sheet.
Take a look at this post, it may get your creative juices flowing.
So I put a small project together that tracks snow plow driver’s times. The Supervisor inputs time in & time out, using the automatic date/time stamp as the “times”. To get the duration, I subtract the start timestamp from the end timestamp -
[image]
[image]
The key to getting a good time elapsed or time worked is to format the final result as “DURATION” in google sheets.
[image]
Hope this helps you out.
1 Like
Thank you! Works great. Seems to be an easy solution to all my issues.
S
1 Like
My pleasure to help, Steven.