View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default Ceilling or round function?

=MAX(MIN(CEILING(A1,1/48),1/24),A1)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Paul" wrote in message
...
Newbie question.

In cell A1, I have numbers of hours done by employees. In cell B2, I want
to put the actual hours we will pay an employe with the following rules:

- Between 0 and 30 minutes = we pay 0.5 hours
- Between 31 and 60 minutes = we pay 1 hour
- Over 60 minutes = we pay the actual time

Having trouble with the formula...please help.

Paul