This is only my second post tothe board. You helped me last time so I thought I would try again. I am trying to figure out a AM / PM work shift based on the date. We rotate AM's to PM's every two weeks, starting on Mondays even if it is a holiday . I have the work days all figured out taking into account all holidays. What I am trying to do is to be able to put either AM or PM into a cell (say A2, with the work date in a1 thru aa1), then have the next cell (B2) figure out if t has been two weeks of AM's and if it has, put PM in the cell and start counting again. I dont know if I can do this with a formula or if I need to do it with VB code. Thanks in advance for any help that can be offered. You guys do great work.