How to remove the time from a date in Excel
Formula (Excel and Google Sheets)
=INT(A2)Use =INT(A2). A timestamp is a date number plus a fraction for the time, and INT drops the fraction.
- Result on the example
- one result per row in
B2, filled down toB6 - Works in
- Every current version
- Google Sheets
- Same formula
See it work
The formula is already in B2, filled down to B6. Change any input and the result updates, or edit the formula to experiment.
How it works
A timestamp is a date number plus the fraction of a day that has passed: 8:15 AM is 0.34. INT drops the fraction and leaves the date at midnight, so the results match plain dates in lookups, COUNTIFS and pivot tables.
=INT(A2)Result46083
A23/2/2026 8:15The value in A2.
INT(A2)46083INT: Rounds down to the nearest integer.- number
A23/2/2026 8:15
- number
In Google Sheets
The same formula works in Google Sheets: =INT(A2). We ran it in Google Sheets mode on the same data and it returns the same results.
Other ways to do it
Each one was run on the same example sheet.
| Formula | Result | When to use it |
|---|---|---|
| =TRUNC(A2) | 3/2/2026, 3/2/2026, 3/3/2026… | The same for dates; INT and TRUNC only differ for negative numbers. |
| =ROUND(A2,0) | 3/2/2026, 3/3/2026, 3/3/2026…Different result | A mistake to avoid: times from noon on round up to the next day. Rounds 12:00 PM and later to the next day. |
Common mistakes
- Changing the number format only hides the time.
=A2=DATE(2026,3,2)is still FALSE, and lookups still miss. - Timestamps imported as text need converting:
=DATEVALUE(A2)returns the date and ignores the time.
Try it yourself
Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.
Remove the time from a date
B2, return the date of the timestamp in A2 without the time, and fill down to B6.Questions
How do I keep only the time instead?
=MOD(A2,1) returns the fraction; format it as a time.
How do I count the rows for one day when the column has times?
Use a one-day window: =COUNTIFS(A2:A6,">="&D1,A2:A6,"<"&D1+1).
Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.