Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lschuh
 
Posts: n/a
Default time calculations

I want to use a calculation that shows time spent at clinic + 30 minutes
added for travel time. Once I get the total time (which I already have in
the worksheet) I want the total minutes if :01 to round up to "30" and
include the hours. If the minutes are 30 then I want to round up to the
next hour. EG: Employee spends 3:12 minutes at clinic. I want to pay the
guy for 3:30 minutes. If the guy spends 3:31 minutes at the clinic then I
want to pay him 4 hours. I can't figure out how to do this with the If, and
statement to change the time function to a number or do I even need to do
that? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default time calculations

=ROUNDUP(A1*48,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I want to use a calculation that shows time spent at clinic + 30 minutes
added for travel time. Once I get the total time (which I already have in
the worksheet) I want the total minutes if :01 to round up to "30" and
include the hours. If the minutes are 30 then I want to round up to the
next hour. EG: Employee spends 3:12 minutes at clinic. I want to pay the
guy for 3:30 minutes. If the guy spends 3:31 minutes at the clinic then I
want to pay him 4 hours. I can't figure out how to do this with the If,
and
statement to change the time function to a number or do I even need to do
that? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lschuh
 
Posts: n/a
Default time calculations

I put in this formula whereas cell a1 having the 3:12 minutes in it and it
did round up to 3:30 which is great. How would I do this if the minutes
spent at the clinic were =30? Then I would need to make 3:30 to 4 hours.

"Niek Otten" wrote:

=ROUNDUP(A1*48,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I want to use a calculation that shows time spent at clinic + 30 minutes
added for travel time. Once I get the total time (which I already have in
the worksheet) I want the total minutes if :01 to round up to "30" and
include the hours. If the minutes are 30 then I want to round up to the
next hour. EG: Employee spends 3:12 minutes at clinic. I want to pay the
guy for 3:30 minutes. If the guy spends 3:31 minutes at the clinic then I
want to pay him 4 hours. I can't figure out how to do this with the If,
and
statement to change the time function to a number or do I even need to do
that? Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default time calculations

=ROUNDUP(A14*48+0.0000000000001,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I put in this formula whereas cell a1 having the 3:12 minutes in it and it
did round up to 3:30 which is great. How would I do this if the minutes
spent at the clinic were =30? Then I would need to make 3:30 to 4 hours.

"Niek Otten" wrote:

=ROUNDUP(A1*48,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I want to use a calculation that shows time spent at clinic + 30 minutes
added for travel time. Once I get the total time (which I already have
in
the worksheet) I want the total minutes if :01 to round up to "30"
and
include the hours. If the minutes are 30 then I want to round up to
the
next hour. EG: Employee spends 3:12 minutes at clinic. I want to pay
the
guy for 3:30 minutes. If the guy spends 3:31 minutes at the clinic
then I
want to pay him 4 hours. I can't figure out how to do this with the
If,
and
statement to change the time function to a number or do I even need to
do
that? Thanks.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lschuh
 
Posts: n/a
Default time calculations

It works fine except if the employee is only at the clinic for 30 minutes.
He gets 30 minutes travel time. Which would give him 1 hour. The second
formula is giving me 30 additional minutes if the employee only spends 30
minutes at the clinic. It shows I should pay 1 hour 30 minutes when I would
only pay 1 hour.
My spreadsheet is set up with
starting time
ending time (the difference between the 2)
the round up, the 2nd roundup
the 30 minutes travel time is something I added in another cell.
I then added the 2 cells together to get actual time + travel time.
Is the formula you wrote already adding the 30 minutes travel time? I don't
know what the second formula you put in with all the zeros is doing, but it
works.


"Niek Otten" wrote:

=ROUNDUP(A14*48+0.0000000000001,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I put in this formula whereas cell a1 having the 3:12 minutes in it and it
did round up to 3:30 which is great. How would I do this if the minutes
spent at the clinic were =30? Then I would need to make 3:30 to 4 hours.

"Niek Otten" wrote:

=ROUNDUP(A1*48,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I want to use a calculation that shows time spent at clinic + 30 minutes
added for travel time. Once I get the total time (which I already have
in
the worksheet) I want the total minutes if :01 to round up to "30"
and
include the hours. If the minutes are 30 then I want to round up to
the
next hour. EG: Employee spends 3:12 minutes at clinic. I want to pay
the
guy for 3:30 minutes. If the guy spends 3:31 minutes at the clinic
then I
want to pay him 4 hours. I can't figure out how to do this with the
If,
and
statement to change the time function to a number or do I even need to
do
that? Thanks.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lschuh
 
Posts: n/a
Default time calculations

I took out the additonal cell with the travel time and just used the 2
formulas you provided and when testing it appears to work ok. I appreciate
your response. If I find something is askew I will write back otherwise
thank you alot.

"lschuh" wrote:

It works fine except if the employee is only at the clinic for 30 minutes.
He gets 30 minutes travel time. Which would give him 1 hour. The second
formula is giving me 30 additional minutes if the employee only spends 30
minutes at the clinic. It shows I should pay 1 hour 30 minutes when I would
only pay 1 hour.
My spreadsheet is set up with
starting time
ending time (the difference between the 2)
the round up, the 2nd roundup
the 30 minutes travel time is something I added in another cell.
I then added the 2 cells together to get actual time + travel time.
Is the formula you wrote already adding the 30 minutes travel time? I don't
know what the second formula you put in with all the zeros is doing, but it
works.


"Niek Otten" wrote:

=ROUNDUP(A14*48+0.0000000000001,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I put in this formula whereas cell a1 having the 3:12 minutes in it and it
did round up to 3:30 which is great. How would I do this if the minutes
spent at the clinic were =30? Then I would need to make 3:30 to 4 hours.

"Niek Otten" wrote:

=ROUNDUP(A1*48,0)/48

--
Kind regards,

Niek Otten

"lschuh" wrote in message
...
I want to use a calculation that shows time spent at clinic + 30 minutes
added for travel time. Once I get the total time (which I already have
in
the worksheet) I want the total minutes if :01 to round up to "30"
and
include the hours. If the minutes are 30 then I want to round up to
the
next hour. EG: Employee spends 3:12 minutes at clinic. I want to pay
the
guy for 3:30 minutes. If the guy spends 3:31 minutes at the clinic
then I
want to pay him 4 hours. I can't figure out how to do this with the
If,
and
statement to change the time function to a number or do I even need to
do
that? Thanks.






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
Excel Time Manipulation BFiedler Excel Discussion (Misc queries) 0 September 15th 05 01:15 AM
conditional formatting with time values Access Idiot Excel Discussion (Misc queries) 2 September 13th 05 03:29 PM
Time Calculations Paul T Excel Worksheet Functions 1 April 23rd 05 04:02 AM
time interval calculations in excel Krishna Excel Discussion (Misc queries) 6 April 8th 05 02:57 PM
Date and time calculations Tony Excel Discussion (Misc queries) 2 January 8th 05 05:16 PM


All times are GMT +1. The time now is 09:35 PM.

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"