Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I need examples of conditional time manipulation IF AND OR

I have a schedule - one employee works 4 hours, one works 8 hours, one works
6 hours.

I need to set up a conditional statement that will print out his or her
lunch as follows:

K5 is the number of hours the employee actually is in the store, and I'm
calculating K5 in one cell, and then doing the lunch time calculations in a
second cell.

IF (K5 <= 5) THEN (Lunch Break = 0)
AND
IF (K5 5 and K5 <8 ) THEN (Lunch Break = 30)
AND
IF (K5 = 8) THEN (Lunch Break = 60)

K5 is derived other cells.

I know this can be done. I just can't get the syntax right.

Thanks for any help y'all can offer.

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
Time sheet manipulation souchie40 Excel Discussion (Misc queries) 0 November 10th 06 09:04 AM
Examples of using Bloomberg API / real time data with Excel VBA? John.Greenan Excel Programming 0 April 21st 06 04:00 PM
String manipulation in macro runs slower each time ran. Lamination Technology Excel Programming 6 March 16th 06 05:57 AM
Excel Time Manipulation BFiedler Excel Discussion (Misc queries) 0 September 15th 05 01:15 AM
Looking for Userform examples - site on web, download examples thom hoyle Excel Programming 1 May 10th 05 05:23 PM


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