Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2007

Tip: Looking for answers? Try searching our database.

Calculating time difference then rounding down

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Angel - 17 May 2007 08:59 GMT
Hi,

I think what I'm looking for is probably really simple but I just can't seem
to get it right!

Basically, I currently have an amount of hours in cell F56 (12:00), I want
to deduct the times shown in G56 (08:24) and H56 (01:00) and express the
outcome as a period of time. Therefore, my formula is currently shown as:

=TEXT(F56-G56-H56,"HH:MM")

This gives me an outcome of 02:36 - so far so good. I now want to amend the
above formula so it still does the same calculation but rounds the total down
to the nearest 15 minutes - thus giving an outcome of 02:30. I think this
will probably need to include FLOOR somewhere but I can't figure out
where/how.

Can anybody shed any light on this? Many thanks in advance.
Mike H - 17 May 2007 09:09 GMT
Try,

=ROUND(SUM(F56-G56-H56)*96,0)/96

Mike

> Hi,
>
[quoted text clipped - 14 lines]
>
> Can anybody shed any light on this? Many thanks in advance.
Angel - 17 May 2007 09:16 GMT
Mike, thanks so much for this - what's taken me hours has just been resolved
by you in minutes - amazing!

> Try,
>
[quoted text clipped - 20 lines]
> >
> > Can anybody shed any light on this? Many thanks in advance.
Bob Phillips - 17 May 2007 09:13 GMT
I don't know why you are using Text rather than just format it, but

=TEXT(ROUND((F56-G56-H56)*96,0)/96,"HH:MM")

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi,
>
[quoted text clipped - 17 lines]
>
> Can anybody shed any light on this? Many thanks in advance.
Mike H - 17 May 2007 09:15 GMT
Angel,

I may have misunderstood, if you always want to round down then use:-

=FLOOR(SUM(F56-G56-H56)*96,1)/96

But if you want to round to nearest then use the previous formula.

Mike

> Hi,
>
[quoted text clipped - 14 lines]
>
> Can anybody shed any light on this? Many thanks in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.