Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Rounding time values up and down

Sorry if this has been asked before but i have time values in cells
formatted h.hh
I need to round the values to the nearest hour for example a time of
13:15 needs to be rounded to 13 and a time of 08:45 would be rounded
to 09

Hope this makes sense

Martin
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Rounding time values up and down

If you multiply by 24 (hours in a day), round it off, then divide by
24, it appears to work.

e.g. =ROUND(A1*24,0)/24

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Rounding time values up and down

I don't understand the logic of formatting as h.hh. Why would you want to
display 13:15 as 13.13 ?

If you've got a number in Excel time format, =MROUND(A1,1/24) will round to
the nearest hour, and you can then format to suit your requirements (which
sounds like hh).
--
David Biddulph

wrote:
Sorry if this has been asked before but i have time values in cells
formatted h.hh
I need to round the values to the nearest hour for example a time of
13:15 needs to be rounded to 13 and a time of 08:45 would be rounded
to 09

Hope this makes sense

Martin



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Rounding time values up and down

Hi,
Take a look at CPearson web

http://www.cpearson.com/excel/dateti...#RoundingTimes

If this helped you please say yes, thank you

" wrote:

Sorry if this has been asked before but i have time values in cells
formatted h.hh
I need to round the values to the nearest hour for example a time of
13:15 needs to be rounded to 13 and a time of 08:45 would be rounded
to 09

Hope this makes sense

Martin

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
Rounding Time values mebsmith Excel Discussion (Misc queries) 7 October 14th 08 10:20 PM
Rounding time Amy Excel Worksheet Functions 4 September 12th 07 08:55 AM
Time and rounding LINDA New Users to Excel 3 November 23rd 06 09:46 AM
Rounding Time? stoch05 Excel Worksheet Functions 2 October 18th 06 07:52 PM
Rounding Time? ChrisW Charts and Charting in Excel 2 October 12th 05 12:55 PM


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