Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Time sheet in calculate per 15 minutes.

Hi,

I am trying to do a time sheet that will show number of hours. I need to
calculate hours worked each day and round them down to every 15 minutes.
For example if the employee work 7 hours and 22 minutes. I want to show 7
hours and 30 minutes in the calculated field. Below is the code I created,
but I am not sure if I am using the forumla correctly. I would appreicate
any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and CI12
is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Time sheet in calculate per 15 minutes.

It look good to me except I would do 1 thing a little different

=FLOOR(((D12-C12)+(J12-I12)),TIMEVALUE("00:15"))*24




"CAM" wrote:

Hi,

I am trying to do a time sheet that will show number of hours. I need to
calculate hours worked each day and round them down to every 15 minutes.
For example if the employee work 7 hours and 22 minutes. I want to show 7
hours and 30 minutes in the calculated field. Below is the code I created,
but I am not sure if I am using the forumla correctly. I would appreicate
any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and CI12
is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Time sheet in calculate per 15 minutes.

Alex,

I believe this does it:

=ROUND(((D12-C12)+(J12-I12))*(1440/15),0)/(1440/15)

hth,

Doug

"CAM" wrote in message
...
Hi,

I am trying to do a time sheet that will show number of hours. I need to
calculate hours worked each day and round them down to every 15 minutes.
For example if the employee work 7 hours and 22 minutes. I want to show 7
hours and 30 minutes in the calculated field. Below is the code I
created, but I am not sure if I am using the forumla correctly. I would
appreicate any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and CI12
is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Time sheet in calculate per 15 minutes.


"Doug Glancy" wrote in message
...
Alex,

I believe this does it:

=ROUND(((D12-C12)+(J12-I12))*(1440/15),0)/(1440/15)

hth,

Doug

"CAM" wrote in message
...
Hi,

I am trying to do a time sheet that will show number of hours. I need to
calculate hours worked each day and round them down to every 15 minutes.
For example if the employee work 7 hours and 22 minutes. I want to show
7 hours and 30 minutes in the calculated field. Below is the code I
created, but I am not sure if I am using the forumla correctly. I would
appreicate any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and
CI12 is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Time sheet in calculate per 15 minutes.

Actually, mine rounds to the nearest 15 minutes, not down, as you said in
your question. Although I notice that your example rounded up.

Doug

"Doug Glancy" wrote in message
...
Alex,

I believe this does it:

=ROUND(((D12-C12)+(J12-I12))*(1440/15),0)/(1440/15)

hth,

Doug

"CAM" wrote in message
...
Hi,

I am trying to do a time sheet that will show number of hours. I need to
calculate hours worked each day and round them down to every 15 minutes.
For example if the employee work 7 hours and 22 minutes. I want to show
7 hours and 30 minutes in the calculated field. Below is the code I
created, but I am not sure if I am using the forumla correctly. I would
appreicate any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and
CI12 is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.







  #6   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Time sheet in calculate per 15 minutes.

Thanks Joel, I wasn't sure if I got it right.


"Joel" wrote in message
...
It look good to me except I would do 1 thing a little different

=FLOOR(((D12-C12)+(J12-I12)),TIMEVALUE("00:15"))*24




"CAM" wrote:

Hi,

I am trying to do a time sheet that will show number of hours. I need to
calculate hours worked each day and round them down to every 15 minutes.
For example if the employee work 7 hours and 22 minutes. I want to show
7
hours and 30 minutes in the calculated field. Below is the code I
created,
but I am not sure if I am using the forumla correctly. I would
appreicate
any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and
CI12
is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.


  #7   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Time sheet in calculate per 15 minutes.

Thanks Doug. I appreicate your input.


"Doug Glancy" wrote in message
...
Actually, mine rounds to the nearest 15 minutes, not down, as you said in
your question. Although I notice that your example rounded up.

Doug

"Doug Glancy" wrote in message
...
Alex,

I believe this does it:

=ROUND(((D12-C12)+(J12-I12))*(1440/15),0)/(1440/15)

hth,

Doug

"CAM" wrote in message
...
Hi,

I am trying to do a time sheet that will show number of hours. I need
to calculate hours worked each day and round them down to every 15
minutes. For example if the employee work 7 hours and 22 minutes. I
want to show 7 hours and 30 minutes in the calculated field. Below is
the code I created, but I am not sure if I am using the forumla
correctly. I would appreicate any tips. Thank you in advance.

cell D12 is Time Out, Cell C12 is Time in. Cell J12 is Time Out and
CI12 is Time In.
=FLOOR(((D12-C12)+(J12-I12)),0.0104166666666666)*24

Cheers.






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
How calculate end time with beginning time plus formula minutes Calculate an ending time Excel Worksheet Functions 3 April 4th 23 02:30 PM
Calculate total time(hours/minutes) from text/custom format column Steve Allen Excel Discussion (Misc queries) 4 December 13th 08 02:22 AM
calculate time in days:hours:minutes Stice Excel Discussion (Misc queries) 1 February 5th 07 09:55 PM
to calculate the difference between sign in and signout time in minutes. [email protected] Excel Worksheet Functions 5 October 1st 06 04:55 PM
Calculate the time difference in minutes Benjamin Davis Excel Programming 3 September 24th 04 05:27 AM


All times are GMT +1. The time now is 03:01 AM.

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

About Us

"It's about Microsoft Excel"