Add One Day to an Excel Date After a Specific Time
Question details
Add one day to a date when a related time is 20:00 or later.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet has a time in one cell and a date in another, and the date needs to advance after a cutoff time.
- Observed behavior
- The result should show the next date at or after 20:00 and the original date before 20:00.
Check that A2 contains a recognized Excel time and B2 contains a recognized date. The main formula assumes A2 contains a time without a date component.
Use a Boolean comparison to advance the date
Use this formula when the cutoff is 20:00 and the time is stored separately from the date.
Excel stores times as fractions of a day, so 20/24 represents 20:00. The comparison returns TRUE or FALSE, which Excel treats as 1 or 0 when added to the date.
Select an empty result cell, such as C2, and enter =B2+(A2>=20/24).
Select C2, open the Home tab, and choose a date format from the Number Format menu.
Drag the fill handle from C2 down the column to apply the formula to additional dates and times.

Add a day after a cutoff time in WPS Spreadsheets
Use the same date and time comparison in WPS Spreadsheets, then format the result as a date.
- 1. Open your spreadsheet: Open WPS Spreadsheets and use Open to select your workbook.
- 2. Enter the formula: With the time in A2 and date in B2, select C2 and enter =B2+(A2>=20/24).
- 3. Format the date: Select C2 and choose a date format from the number format options on the Home tab.
- 4. Fill other rows: Drag the fill handle from C2 down to calculate results for the remaining rows.

Frequently Asked Questions
Does the formula add a day at exactly 20:00?
Yes. The >= comparison includes 20:00, so =B2+(A2>=20/24) adds one day at exactly 20:00 or later.
How can I use a different cutoff time?
Replace 20/24 with another time value. For example, use =B2+(A2>=TIME(18,30,0)) for a cutoff of 18:30.
Why does the result appear as a number instead of a date?
Excel stores dates as serial numbers. Select the result cell and choose a date format from Home > Number Format.
What if the time cell also contains a date?
Use =B2+(MOD(A2,1)>=20/24). MOD(A2,1) extracts the time portion before comparing it with the cutoff.




