Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default Converting 1-60 minutes to quarter minutes in a formula

I am working on a timesheet that adds our time up, but I would like on the
total sum of each day to change to quarter time. Is that possible? For
example, an employee enters in at 8:30, out at 12:00, in at 12:30, out at
5:30, the total for that is 8 hours 30 minutes, it shows 08:30. I want to
change that total to read 8.5 instead of 30 minutes. Maybe a formula to
change 01 min thru 15 minutes to .25 and so on. Any help? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Converting 1-60 minutes to quarter minutes in a formula

With 8:30 in A1, =A1*24 gives 8.5 when the cell is formatted general
Do you also want to round to nearest 1/4 hour (0.25?)
=MROUND(A1*24,0.25) or =ROUND(A1*24*4,0)/4
The MROUND function requires the Analysis Toolpac
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Lori" wrote in message
...
I am working on a timesheet that adds our time up, but I would like on the
total sum of each day to change to quarter time. Is that possible? For
example, an employee enters in at 8:30, out at 12:00, in at 12:30, out at
5:30, the total for that is 8 hours 30 minutes, it shows 08:30. I want to
change that total to read 8.5 instead of 30 minutes. Maybe a formula to
change 01 min thru 15 minutes to .25 and so on. Any help? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Converting 1-60 minutes to quarter minutes in a formula

One way:

Assuming 'In' in Columns A & C, 'Out' in columns B & D:

=CEILING((B1+D1-A1-C1)*24,0.25)

XL stores times as fractional days, so multiplying by 24 produces hours
as integers.


In article ,
Lori wrote:

I am working on a timesheet that adds our time up, but I would like on the
total sum of each day to change to quarter time. Is that possible? For
example, an employee enters in at 8:30, out at 12:00, in at 12:30, out at
5:30, the total for that is 8 hours 30 minutes, it shows 08:30. I want to
change that total to read 8.5 instead of 30 minutes. Maybe a formula to
change 01 min thru 15 minutes to .25 and so on. Any help? Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Converting 1-60 minutes to quarter minutes in a formula

Note that MROUND() or ROUND() will round 01-07 minutes to .00, not .25.
If you really want 01 minute to round to 0.25, use CEILING() or
ROUNDUP().


In article ,
"Bernard Liengme" wrote:

With 8:30 in A1, =A1*24 gives 8.5 when the cell is formatted general
Do you also want to round to nearest 1/4 hour (0.25?)
=MROUND(A1*24,0.25) or =ROUND(A1*24*4,0)/4
The MROUND function requires the Analysis Toolpac
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Lori" wrote in message
...
I am working on a timesheet that adds our time up, but I would like on the
total sum of each day to change to quarter time. Is that possible? For
example, an employee enters in at 8:30, out at 12:00, in at 12:30, out at
5:30, the total for that is 8 hours 30 minutes, it shows 08:30. I want to
change that total to read 8.5 instead of 30 minutes. Maybe a formula to
change 01 min thru 15 minutes to .25 and so on. Any help? Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default Converting 1-60 minutes to quarter minutes in a formula

Hi, in an earlier reply you asked if I really wanted to round 1 min to .25.
No, I do not, didn't catch that one! So, does the CEILING make it round up
or down accordingly?
Thanks again, Lori
"JE McGimpsey" wrote:

One way:

Assuming 'In' in Columns A & C, 'Out' in columns B & D:

=CEILING((B1+D1-A1-C1)*24,0.25)

XL stores times as fractional days, so multiplying by 24 produces hours
as integers.


In article ,
Lori wrote:

I am working on a timesheet that adds our time up, but I would like on the
total sum of each day to change to quarter time. Is that possible? For
example, an employee enters in at 8:30, out at 12:00, in at 12:30, out at
5:30, the total for that is 8 hours 30 minutes, it shows 08:30. I want to
change that total to read 8.5 instead of 30 minutes. Maybe a formula to
change 01 min thru 15 minutes to .25 and so on. Any help? Thanks.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Converting 1-60 minutes to quarter minutes in a formula

ceiling rounds up, you want the second formula Bernard gave you

--
---
HTH

Bob

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



"Lori" wrote in message
...
Hi, in an earlier reply you asked if I really wanted to round 1 min to
.25.
No, I do not, didn't catch that one! So, does the CEILING make it round
up
or down accordingly?
Thanks again, Lori
"JE McGimpsey" wrote:

One way:

Assuming 'In' in Columns A & C, 'Out' in columns B & D:

=CEILING((B1+D1-A1-C1)*24,0.25)

XL stores times as fractional days, so multiplying by 24 produces hours
as integers.


In article ,
Lori wrote:

I am working on a timesheet that adds our time up, but I would like on
the
total sum of each day to change to quarter time. Is that possible?
For
example, an employee enters in at 8:30, out at 12:00, in at 12:30, out
at
5:30, the total for that is 8 hours 30 minutes, it shows 08:30. I want
to
change that total to read 8.5 instead of 30 minutes. Maybe a formula
to
change 01 min thru 15 minutes to .25 and so on. Any help? Thanks.




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
Converting total minutes into hours and minutes in Excel colette Excel Worksheet Functions 11 December 26th 07 07:24 PM
Converting hours:minutes:seconds to just minutes Dan Vagle Excel Worksheet Functions 3 July 17th 06 11:20 PM
converting Days Hours & minutes into just minutes in excel Six Sigma Blackbelt Excel Discussion (Misc queries) 5 April 28th 06 09:45 PM
Converting Hours and Minutes to Just Minutes cny2 Excel Discussion (Misc queries) 4 January 5th 06 08:49 PM
Formula for minutes to days:hours:minutes QueenCutieT Excel Discussion (Misc queries) 2 February 10th 05 12:30 AM


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