View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Rounding to nearest quarter hour?

one way:

Since XL stores times as fractional days and quarter hours are 1/96 of a
day:

=ROUND(SUM(C4:C20)*96,0)/96

The date system makes no difference unless the SUM is negative.

In article ,
StargateFan wrote:

If we have a column of times we're adding up in a formula like, say,
=sum(C4:C20) and we're dealing with times is there a way to modify
that formula so that it rounds the total to the nearest quarter hour?

p.s., since the spreadsheet had to take into account "negative" hours
in terms of subtracting hours, the spreadsheet is set to the 1904
system. Don't know if that makes any difference to the above.

Tx.