#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default round up time

Hi there

I have a cell that has a formala that calculates the time spent at a port by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default round up time

=ROUNDUP(F1*24,0)/24

--
__________________________________
HTH

Bob

"Ruth" wrote in message
...
Hi there

I have a cell that has a formala that calculates the time spent at a port
by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is
how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default round up time

You could also use

=CEILING(F1,--"1:00")

--
__________________________________
HTH

Bob

"Ruth" wrote in message
...
Hi there

I have a cell that has a formala that calculates the time spent at a port
by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is
how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default round up time

Don't even need the --

=CEILING(F1,"1:00")

--
__________________________________
HTH

Bob

"Ruth" wrote in message
...
Hi there

I have a cell that has a formala that calculates the time spent at a port
by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is
how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default round up time

Hi,

Try this

=ROUNDUP((B1-A1)*24,0)/24

A1=Earlier time

Mike

"Ruth" wrote:

Hi there

I have a cell that has a formala that calculates the time spent at a port by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default round up time

Thank-you - all 3 methods worked.
--
Thank-you!
Ruth


"Mike H" wrote:

Hi,

Try this

=ROUNDUP((B1-A1)*24,0)/24

A1=Earlier time

Mike

"Ruth" wrote:

Hi there

I have a cell that has a formala that calculates the time spent at a port by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default round up time

You guys are so great! Thanks for sharing your brilliance!


"Mike H" wrote:

Hi,

Try this

=ROUNDUP((B1-A1)*24,0)/24

A1=Earlier time

Mike

"Ruth" wrote:

Hi there

I have a cell that has a formala that calculates the time spent at a port by
subtracting the arrival time from the departure time.

I want the same cell to always round the time up to the next hour, ei - if
there for 2 hours and 10 minutes-- I want it to say 3 hours. As that is how
we are charge.

Is there a way to do this? If so, how?

--
Thank-you!
Ruth

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 do I round time Ana Excel Worksheet Functions 2 September 28th 06 12:44 AM
Round down for time Shadowman13 Excel Discussion (Misc queries) 3 May 20th 05 11:13 PM
Round Up Time IF carl Excel Worksheet Functions 4 January 7th 05 07:25 PM
Round UP Time carl Excel Worksheet Functions 1 January 7th 05 04:31 PM
How do I round time? cpme Excel Worksheet Functions 3 November 17th 04 12:37 AM


All times are GMT +1. The time now is 01:17 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"