#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default deviding hours

I calculate the montly hours leaves for the employees, I make the sum of the
daily leaves and the format [hh]:mm, then i want to convert the sum to days &
hours, every 7 leaves hours = 1 day so I put the formula: =int( A1/7) but the
result is always 0, so what should I do?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default deviding hours

On Sat, 10 Nov 2007 00:02:00 -0800, tamara wrote:

I calculate the montly hours leaves for the employees, I make the sum of the
daily leaves and the format [hh]:mm, then i want to convert the sum to days &
hours, every 7 leaves hours = 1 day so I put the formula: =int( A1/7) but the
result is always 0, so what should I do?


If you make the sum in format hh:mm, Excel will add a day for every 24
hours, so you will end up in less hours.
I would make calculations with hour values only, so INT(A1/7) will work,
and for presentation purposes only convert to hh:mm format.

HTH,
B.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default deviding hours

On Nov 9, 9:12 pm, Boris wrote:
On Sat, 10 Nov 2007 00:02:00 -0800, tamara wrote:
I calculate the montly hours leaves for the employees, I make the sum of the
daily leaves and the format [hh]:mm, then i want to convert the sum to days &
hours, every 7 leaves hours = 1 day so I put the formula: =int( A1/7) but the
result is always 0, so what should I do?


If you make the sum in format hh:mm, Excel will add a day for every 24
hours, so you will end up in less hours.
I would make calculations with hour values only, so INT(A1/7) will work,
and for presentation purposes only convert to hh:mm format.

HTH,
B.


Forward me the sample file, i will help you

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default deviding hours

Times in Excel are stored as fractions of a day and a day is stored as the number 1.
So multiply the hours by 24 and you get the number of hours as a number.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tamara" wrote in message ...
|I calculate the montly hours leaves for the employees, I make the sum of the
| daily leaves and the format [hh]:mm, then i want to convert the sum to days &
| hours, every 7 leaves hours = 1 day so I put the formula: =int( A1/7) but the
| result is always 0, so what should I do?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default deviding hours

So if your total hours is 34:00 you want to convert this to 4 days 6:00?

Try

=INT(A1*24/7)&" days "&TEXT(MOD(A1,"7:00"),"hh:mm")

"tamara" wrote:

I calculate the montly hours leaves for the employees, I make the sum of the
daily leaves and the format [hh]:mm, then i want to convert the sum to days &
hours, every 7 leaves hours = 1 day so I put the formula: =int( A1/7) but the
result is always 0, so what should I do?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wages - multiply hours and minutes by number of hours worked Carol (Australia) Excel Discussion (Misc queries) 6 April 1st 07 01:16 AM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
how to add hours and show actual hours not decimal numbers TWERNER New Users to Excel 2 August 21st 06 08:35 AM
Problem converting Hours to Days, Hours, Minutes Zyzzx Excel Worksheet Functions 4 October 24th 05 04:19 PM
Convert hours and minutes in time format into fractions of hours.. Akern Excel Worksheet Functions 4 April 21st 05 02:56 PM


All times are GMT +1. The time now is 06:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"