calculating meals per 24 hour period
Posted by Richard Laing on September 29, 2000 5:48 PM
I need to calculate the number of meals per 24 hour period. Up to three hours no meals are allowed. Between 3 and 6 hours, 1 meal is allowed, between 6 and 9 hours, 2 meals etc. to a maximum of 4 meals per 24 hours. After 24 hours, the calculations are reset. The times are calculated on one sheet and the meals are calculated on another. The formula I have used is =IF(B14<>"",IF('Task Report Form'!$P$13>0.0208333,ROUNDUP('Task Report Form'!$P$13,0),0),0)where 0.0208333 is the result of (DATE COMPLETED+TIME COMPLETED)-(DATE STARTED+TIME STARTED)and B14 is valid only if a name is inserted. I am having problems with it giving me 1 meal for less than 3 hours work. I am still struggling to understand how this all works, so I hope this makes sense.