How to Remove the Time From a Date in Excel
Turn timestamps into day-only values that match in formulas and reports. Compare two times on the same day and keep the original timestamps for reference.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
For a real Excel timestamp in A2, enter
=INT(A2)in B2, then choose Home → Number Format → Short Date. Fill the formula down. If you only want a shorter display, you can apply Short Date directly to the original cells, but their time values will still be there.
1. Create two timestamps for the same day
Put Timestamp in A1 and Date only in B1. For an example that works independently of the order in which your region displays dates, enter =DATE(2026,6,5)+TIME(8,15,0) in A2 and =DATE(2026,6,5)+TIME(16,45,0) in A3. These are two events on June 5, one in the morning and one in the afternoon.
2. Check why matching dates can compare as different
Select A2:A3 and apply Short Date. Both cells should display the same date. Now type =A2=A3 in D2. The answer is FALSE. Excel stores a date as a day number and the time as a fraction of a day. A date format hides that fraction on screen while keeping it in the underlying value.
3. Keep only the day number
In B2 enter =INT(A2). Drag the small square at the lower-right corner of B2 down to B3. Select B2:B3 and choose Short Date. A large whole number before you apply the format is normal. Avoid rounding to the nearest whole day because a time in the afternoon could round to tomorrow.
| Method | Looks like a date | Same-day test |
|---|---|---|
| Short Date on A2:A3 | Yes | FALSE |
| INT and Short Date in B2:B3 | Yes | TRUE |
4. Verify the result before using it in a report
In D3 enter =B2=B3. The result should now be TRUE. In D4 enter =COUNTIF(B2:B3,DATE(2026,6,5)). You should get 2. Use column B for daily counts or a PivotTable report and keep column A for questions about the exact time.
What if the column has blanks or text?
To leave empty source rows blank, use =IF(A2="","",INT(A2)). If a timestamp gives an error, try =ISNUMBER(A2). A FALSE result on a filled cell suggests a text import. Confirm the month and day order before converting that column to a date and time.
Microsoft Support · INT function
Comments
Read or join the discussion.