Afternoon Guys,
This is my first post, on, well, any forum ever! So be nice!
I'm creating an electronic timesheet and I've hit a brick wall. So far what i have done is create start and end times. I have formatted these to be time (HH:MM) with the range between 00:00 to 23:59.
Some of our employees work over night. I figured when they get to 23:59 on day one, they could go down a row and start day two as 00:00. This of course caused a problem for me as my totals box will now read a minute less, so 0:59.
Because of this I have tried writing a formula that will only round up when the time is over 0:30.
For instance,
If someone entered anything under 0:30 it will not round up. If someone enters anything over 0:30 it will round up to a whole hour. This worked.
I sent the completed timesheet to my boss who decided it would be better to set it to 15 minute increments rather than the previous 30 minutes. I've tried to change the formula to accomodate it but i'm having no joy.
The formula is as follows: -
- =IF(AND(((I10-H10)*24)>0,((I10-H10)*24)<0.16,G10="X"),"0.15",IF(AND(((I10-H10)*24)>0.15,((I10-H10)*24)<0.31,G10="X"),"0.30",IF(AND(((I10-H10)*24)>0.30,((I10-H10)*24)<0.46,G10="x"),"0.45",IF(AND(((I10-H10)*24)>0.45,ROUNDUP(((I10-H10)*24),1),""))
What am I doing wrong? Any help would be appreciated!
Bookmarks