Re: rounding the results of two times
- From: "David Biddulph" <groups [at] biddulph.org.uk>
- Date: Thu, 11 Dec 2008 14:44:55 -0000
If you want always to round UP, you'd be better off using CELING. If you
want to know why it isn't rounding up when you think you are exactly on the
quarter hour, look at what =(A2-A1)*24 shows when formatted to 15 or so
decimal places.
If you don't understand why it's doing that, work out what the *exact*
binary representation of 8/24 would be, and let us know the answer. :-)
--
David Biddulph
"Mr.B" <MrB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AD71DE0C-32D6-4A0A-B98F-B95BA54E4526@xxxxxxxxxxxxxxxx
The format is right I need this to figure out the amount of time a product
has been out of cold storage
but 8 til 1545 is 7 hours and 45 minutes this should be rounded to the
next
full hour showing 8.0 as the result
using the same format try adding another hour on and then it will round to
the next whole hour
this is confusing me
--
Mr.B
"Bernard Liengme" wrote:
The formula works for me giving 7.5. Try formatting the cell to show more
decimals - you could use the Increase Decimals tool
If I want to see 7:30 I need =round((A2-A1)*24*2,0)/(2*24) and format the
cell as Time
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
"Mr.B" <MrB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1F285DC1-AB2E-4703-A8D1-BC3EF4976F41@xxxxxxxxxxxxxxxx
I recently asked how to round a date and time and I got what I was
looking
for but I think there may be a flaw in my formula or excel.....
A1 12/5/2008 8:00
A2 12/5/2008 15:45
using the formula
=round((A2-A1)*24*2,0)/2
gives me a result of 7.5 and it should be 8.0 so it is not rounding to
he
half hour correctly ..........using the same if I change A1 to 7:00 it
shows
9.0 hours and is correct.........so why is the 8 oclock hour rounding
differently......can I fix this...?
--
Mr.B
.
- Follow-Ups:
- Re: rounding the results of two times
- From: Mr.B
- Re: rounding the results of two times
- References:
- rounding the results of two times
- From: Mr.B
- Re: rounding the results of two times
- From: Bernard Liengme
- Re: rounding the results of two times
- From: Mr.B
- rounding the results of two times
- Prev by Date: How can I insert a row in a source that links to a destination
- Next by Date: Re: Subtotal Function - add formula to all blank rows
- Previous by thread: Re: rounding the results of two times
- Next by thread: Re: rounding the results of two times
- Index(es):
Relevant Pages
|