Formula Errors

Add One Day to an Excel Date After a Specific Time

Algirdas JasaitisAlgirdas Jasaitis Nov 27, 2026 870 views

Question details

Add one day to a date when a related time is 20:00 or later.

Add One Day to an Excel Date After a Specific Time
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

Select an empty result cell, such as C2, and enter =B2+(A2>=20/24).

2
Format the result

Select C2, open the Home tab, and choose a date format from the Number Format menu.

3
Apply it to other rows

Drag the fill handle from C2 down the column to apply the formula to additional dates and times.

Use a Boolean comparison to advance the date
Time and date in the same cell: If A2 contains both a date and a time, use =B2+(MOD(A2,1)>=20/24) to compare only its time portion.
Calculate dates in WPS Spreadsheets

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. 1. Open your spreadsheet: Open WPS Spreadsheets and use Open to select your workbook.
  2. 2. Enter the formula: With the time in A2 and date in B2, select C2 and enter =B2+(A2>=20/24).
  3. 3. Format the date: Select C2 and choose a date format from the number format options on the Home tab.
  4. 4. Fill other rows: Drag the fill handle from C2 down to calculate results for the remaining rows.
Add one day automatically when a time reaches 20:00.Open and edit Microsoft Excel XLSX files.Copy the formula down a column for multiple rows.
microsoft office alternative - wps office

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.