LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Manadatory break after 10 days of work formulae

On Mar 10, 2:53*pm, joel wrote:
I replaced the 2nd part of the IF statement with a lookup for the 28
day time period and then either "ON" or "OFF" to indicate the day type.
I wasn't sure if yo urequired another 2 day period off after every 10
days or just the 1st 2 days off. *You should be able to change the
formula to meet your needs.

=IF($G50,IF($F5="10-4",IF(MOD(AZ$3-$G5,14)+1<=10,"on","off"),LOOKUP(MOD(AZ*$3-$G5,28)+1,{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 17,18,19,20,21,22,23,2*4,25,26,27,28;"on","on","on ","on","on","on","on","on","on","on","off","off"*, "on","on","on","on","on","on","on","on","on","off" ,"off","off","off","off"*,"off","off"})),"")

--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread:http://www.thecodecage.com/forumz/sh...d.php?t=186076

Excel Live Chat


Joel... You are a GOD!!!! Thank you very much for your help. It works
perfectly!

Scott


 
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
getting vb module formulae to work in excel 2003 Bob Matthews[_2_] Excel Programming 10 December 14th 08 09:52 PM
manadatory data entry cells in excel Neale Excel Worksheet Functions 1 October 14th 08 07:55 AM
Formulae to work out break even point? Imran Excel Worksheet Functions 3 September 12th 06 01:08 PM
when copying formulae from one cell to another it does not work Gav Excel Worksheet Functions 1 May 27th 05 02:33 PM
What is the formulae to write a work timecard in Excel Billious0 Excel Programming 4 April 11th 05 04:39 PM


All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"