LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default Timesheet Help. Rounding to the nearest 1/4

Hi, I been working on this timesheet and I thought I had it right. I was
working on actual time worked but this is not what my employers want.

I am hope you can help. My timesheet has a layout like is:

IN OUT Meal IN OUT Total

What we need is to have the time round to the nearest ¼ hour within each IN
and OUT.

Example:

IN OUT
8:07 AM 11:52 PM

The 8:07 AM would become 8:00 AM and the 11:52 PM would become 11:45 PM with
the output being 3.75 hours.

This would need to be done within the formula (?) and not change the cells
format that the times have been enter but showing the end results in the
TOTAL cell.

Example:

IN OUT Meal IN OUT Total
8:07 AM 11:52 PM 3.75

As you see there is still another IN/OUT. I would need to do the same with
those. Now the way I currently have it setup is when I enter the time in the
IN cells I get no output until I enter the time in the OUT cell. The formula
I am currently using is below.

=ROUND(IF((OR(B15="",C15="")),0,IF((C15<B15),((C15-B15)*24)+24,(C15-B15)*24))+IF((OR(E15="",F15="")),0,IF((F15<E15),(( F15-E15)*24)+24,(F15-E15)*24)),2)

The Meal cell (D15) has no value. It is just for cosmetic.

The end result should look like this.

IN OUT Meal IN OUT Total
8:07 AM 11:52 PM 1:12 PM 4:58 PM 7.50


Thanks in advance.

 
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 to nearest hundred dollar in Excel Diane New Users to Excel 7 October 14th 05 04:25 PM
Rounding numbers to the nearest 5 or 0 Fieldmedic Excel Worksheet Functions 3 July 17th 05 06:51 AM
Rounding up to the nearest nickel jhangas Excel Discussion (Misc queries) 3 May 28th 05 12:41 AM
Rounding to nearest integer pattyh Excel Worksheet Functions 3 April 1st 05 08:02 PM
Rounding numbers to the nearest thousand Mark Excel Discussion (Misc queries) 2 March 10th 05 12:13 PM


All times are GMT +1. The time now is 09:12 AM.

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"