Re: [libreoffice-users] difference in hours between two times

2018-05-24 Thread Remy Gauthier
Hi, If it is pure display you are looking for, then the difference in days is: =INT((A2+B2)-(A1+B1)) with a numbers display format (such as # ##0) the difference in hours is: =(A2+B2)-(A1+B1) with a display format set to [h] You can be a bit fancy and set the # days format to be # ##0" days" and

Re: [libreoffice-users] Re: difference in hours between two times

2018-05-24 Thread Brian Barker
At 17:55 24/05/2018 -0400, James Lockie wrote: It is hard to enter both a date and time. It is easy to enter "5/24" and it is converted to Mar 24, 2018. Let's deal with that first. It's true you can enter "5/24" (in an appropriate locale), but the same applies to times. If the time you want

Re: [libreoffice-users] difference in hours between two times

2018-05-24 Thread Steve Edmonds
Interesting how people think differently. Assuming dates have cell format date and time has cell format time; I came up with days firstĀ  = (A2+B2)-(A1+B1) (cell format general) hours = days*24 (cell format general) steve On 25/05/18 10:05, Michael D. Setzer II wrote: Divide the difference by an

Re: [libreoffice-users] difference in hours between two times

2018-05-24 Thread Michael D. Setzer II
Divide the difference by an hour, and you get the hours, and then divide that by 24 or could do the same and divide by 24 hours. 05/16/1808:30:00 PM111.58 4.65 05/21/1812:05:00 PM'=((A2+B2)-(A1+B1))/TIME(1,0,0)

[libreoffice-users] Re: difference in hours between two times

2018-05-24 Thread James
On 2018-05-24 03:41 PM, Steve Edmonds wrote: > Is there a reason you can't put A and B in one column. > Format cell as date, define the format DDD MMM DD HH:MM AM/PM > You can then subtract easily and result is in days or x 24 for hours. It is hard to enter both a date and time. It is easy to

Re: [libreoffice-users] difference in hours between two times

2018-05-24 Thread Steve Edmonds
Is there a reason you can't put A and B in one column. Format cell as date, define the format DDD MMM DD HH:MM AM/PM You can then subtract easily and result is in days or x 24 for hours. Steve On 25/05/18 07:07, James wrote: I have a calc spreadsheet with column A being a date and column

[libreoffice-users] difference in hours between two times

2018-05-24 Thread James
I have a calc spreadsheet with column A being a date and column B is a time. I am trying to make a foruma that calculates the difference in days and another for the difference in hours between 2 rows. For example: column A Wed, May 16, 2018 Mon, May 21, 2018 column B 08:30 PM 12:05 PM