Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Ceilling or round function?

=if(A1<=TimeValue("0:30"),TimeValue("0:30"),if(A1< =TimeValue("1:00"),TimeValue("1:00"),A1))*B1

where the time is in A1 and the rate in B1.

--
Regards,
Tom Ogilvy

"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



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
Round function plantslayer Excel Discussion (Misc queries) 3 June 4th 08 05:49 PM
Round up function shifty Excel Discussion (Misc queries) 3 December 31st 07 11:59 AM
VB Function Round vs Excel function Round not behaving the same Od Bud Excel Programming 5 August 18th 06 05:39 AM
Round function Gian Excel Programming 4 January 23rd 06 04:17 PM
VB Round( ) function Andrew[_24_] Excel Programming 10 November 13th 03 03:23 AM


All times are GMT +1. The time now is 11:01 PM.

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"