Hi Bill,
Thank you for your reply.
I have a problem to add the date to the start time and end time.
When I first created the worksheet I don't really use dates with times.
I only really used the date to sort the list into date order.
I have a lookup table with the dates for the week, This is a copy of how the lookup table looks...
Day Date
Saturday 11/05/2013
Sunday 12/05/2013
Monday 13/05/2013
Tuesday 14/05/2013
Wednesday 15/05/2013
Thursday 16/05/2013
Friday 17/05/2013
Saturday 18/05/2013
I then enter the day, and then the following formula I use to insert the date in my table
=IF(B17="","",$L$16+IF(E17="Sat",0,IF(E17="Sun",1,IF(E17="Mon",2,IF(E17="Tue",3,IF(E17="Wed",4,IF(E17="Thu",5,IF(E17="Fri",6,IF(E17="Next",7,0)))))))))
I use the following formula to correct the end time if goes over midnight
=IF(H17<>"",IF(HOUR(X17)<12,X17+(12*60)+MINUTE(X17),X17)," ")
So I am not sure how I would add the date to both start and end times.
To add the date to the start time, I would guess that the formula would be...
date+start time
but how would I add the date to the end time?
Just to let you know I've copied the date, start time and end time to a new area of the sheet just to work out if the times overlap, here are the cell ref for this new area...
Date = CH17:CH216
Start Time = CI17:CI216
End Time = CJ17:CJ216
I have also set the following to show working out and information I may need to know...
Day of Week = CG17:CG216
Code for information = CK17:CK216
Same Date = CL17:CL216 Formula: =IF(CH17<>"",IF(CH17=CH16,"Yes","No"),"")
Same Start Time = CM17CM216 Formula =IF(CH17<>"",IF(CI17=CI16,"Yes","No"),"")
Same End Time = CN17:CN216 Formula =IF(CH17<>"",IF(CJ17=CJ16,"Yes","No"),"")
Start Time Before End Time = CO17:CO216 Formula =IF(CH17<>"",IF(CI17<CJ16,"Yes","No"),"")
Need to Check for Overlap = CP17:CP216 Formula =IF(CH17<>"",IF(OR(CK17="Y",CK17="A"),"Yes","No"),"")
Can I use a formula to check for overlaps with the details within this new table.
Can add new items to the table, i.e. can add a column for end date, then a column for start date + start time, then a column end date + end time.
Then use the formula you gave in your first reply.
Neil