ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Add up hours (https://www.excelbanter.com/excel-discussion-misc-queries/170848-add-up-hours.html)

Smiley78

Add up hours
 
I have put in the start time 09:30 and when i quit working 18:15 and made a
formula =SUMMA(D4-C4) so that i get how many hours and minutes i work that
day. But how do i add all hours and minutes for each day so i can see how
much i worked whole month?

Peo Sjoblom

Add up hours
 
=D4-C4

no need for SUMMA when you do subtraction


then if you want to sum the whole month, assume the days are in E4:E34

=SUMMA(E4:E34)


now here's the trick, custom format the result as

[tt]:mm:ss


or else you won't display past 24 hours


--


Regards,


Peo Sjoblom


"Smiley78" wrote in message
...
I have put in the start time 09:30 and when i quit working 18:15 and made a
formula =SUMMA(D4-C4) so that i get how many hours and minutes i work that
day. But how do i add all hours and minutes for each day so i can see how
much i worked whole month?




Chip Pearson

Add up hours
 
If you put =D4-C4 in column E, for example, you can use a formula like
=SUM(E4:E34) to sum the times in column E. Excel will "roll over" at 24
hours when displaying the result. Thus, thirty hours, 30:00:00 will be
displayed as 6:00:00 (30 hours - 24 hours = 6 hours). To prevent this and
force Excel to display the number of hours, (e.g., 30 hours displayed as
30:00:00) use a custom number format of [hh]:mm or [hh]:mm:ss. The square
brackets [ ] prevent Excel from rolling over at 24 hours. (Note that this
affects only the displayed value, not the actual value of the cell.
Regardless of the display format, thirty hours is the actual value of the
cell.)

If you are going to use the total number of hours in a calculation (e.g.,
Income = TotalHours * Rate), you must multiply the total hours by 24. For
example,

=24*TotalHours*Rate

Format that cell for General or Numberic, not Time.

See www.cpearson.com/Excel/DateTime.htm for much more information about
working with dates and times in Excel.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Smiley78" wrote in message
...
I have put in the start time 09:30 and when i quit working 18:15 and made a
formula =SUMMA(D4-C4) so that i get how many hours and minutes i work that
day. But how do i add all hours and minutes for each day so i can see how
much i worked whole month?



RichardSchollar[_2_]

Add up hours
 
Hi

Just add up all your days' formulas like

=SUM(E4:E26)

assuming they are in E24:E26. What you will probably want to do is to
format this formula cell with a custom number format of:

[h]:mm

So that you get the value in total hours/minutes (ie this number
format will display 2 days, 6 hours as:

54:00

Hope this helps!

Richard

Smiley78 wrote:
I have put in the start time 09:30 and when i quit working 18:15 and made a
formula =SUMMA(D4-C4) so that i get how many hours and minutes i work that
day. But how do i add all hours and minutes for each day so i can see how
much i worked whole month?



All times are GMT +1. The time now is 11:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com