[Solved] Adding up hours from time

Discuss the spreadsheet application
Post Reply
Barry 1976
Posts: 2
Joined: Fri Jul 09, 2021 12:21 am

[Solved] Adding up hours from time

Post by Barry 1976 »

Hi all,

I wonder if there is a way to derive the amount of hours from two time stamps. Column A 'gives time in' (example: 08:00), Column B gives 'Time out' (example: 10:30); Column C gives Total hours (example: 2:30, or 2.5)

-----Solution: Column D: "=B2-A2"--------

Thanks for any tips!
Last edited by Barry 1976 on Mon Jul 12, 2021 9:09 pm, edited 1 time in total.
OpenOffice 4.1.3 on Windows 10
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Adding up hours from time

Post by robleyd »

Did you try subtracting A from B? Format the target cell C as time or decimal number according to your needs.

If you are a newcomer to spreadsheets you may find [Tutorial] Ten concepts that very Calc user should know to be a useful reference; particularly 4. Times in cells.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Barry 1976
Posts: 2
Joined: Fri Jul 09, 2021 12:21 am

Re: Adding up hours from time

Post by Barry 1976 »

Thanks David! I did find the formula in the Excel forum. Indeed subtracting, rather than adding, did the trick.
OpenOffice 4.1.3 on Windows 10
Post Reply