 SOLVED

# Time reset new date

Hi, I have a spreadsheet with dates and times for appointments. Each day starts at 9am, is there any formula or conditionally formatting I can add to the cell so that the first appointment automatically resets to 9am when the date changes from the previous date? Thanks in advance, Dale
7 Replies
Best Response confirmed by Dalehab (Occasional Contributor)
Solution

# Re: Time reset new date

For example, if your days are in column A, and A5 starts a new day (i.e., isn't the same as A4) then this formula will set B5 to 9:00 a.m.

=IF(A5<>A4,TIME(9,0,0))

But it would help me or somebody else here give a more, uh, detailed answer if you gave a little more details on how your spreadsheet is laid out.

Ideally, post a copy of the spreadsheet itself (without any confidential info).

# Re: Time reset new date

I'm using the spreadsheet to populate a calendar. Column A is the address, B is start date, C is End date, D start time, E is End time.

# Re: Time reset new date

I should also add, I then need the same data in the below rows to calculate in half hour intervals, which I am using the formula =D1+0.5*(1/24)

# Re: Time reset new date

A more specifically Excel-Time based way to do that is

=D1+TIME(,30,)

In that way you could easily change your intervals to any increment of minutes desired.The syntax is
TIME(hours,minutes,seconds)

(I read yesterday that one of the US Presidents, trained as an engineer and fanatical for efficiency, set his meeting calendar up for 8 minute intervals. Of course, 60 minutes don't divide into 8 minute intervals; so maybe he had a four minute break in there each hour)

# Re: Time reset new date

Hi mathetes,
I've attached an example of the spreadsheet, the time formula is great, however, I can't get the IF formula to work, not sure what I am doing wrong? 🤦

# Re: Time reset new date

@Dalehab Starting in cell D3 you want to paste the formula:

``=IF(B3<>C2,TIME(9,,),E2)``

Note: this puts in an Excel Date/Time value that is equivalent to 0 days and then only the time/hours.  You could combine the Time values with the Start Date and End Date (is the End Date ever different than the Start Date?).  It all depends on what you want to do with the data and which might be easier for calculations down the line (if any).

# Re: Time reset new date

Thanks mtarler, much appreciated