How to Remove the Time From a Date in Excel
By ExcelReady TeamUpdated 5 min read
The short answer
To remove the time from a date in Excel, use =INT(A2) in a new column and format the result as a date. Excel stores a date as a whole number and the time as a decimal, so INT drops the time completely. Changing the number format only hides the time: the value still has it, which can break lookups and counts.
Key takeaways
- Excel stores date and time as one number: the whole part is the date, the decimal part is the time.
- =INT(A2) or =TRUNC(A2) removes the time for real; format the result as a date.
- A date-only number format hides the time but keeps it, so COUNTIF and lookups on that date can still fail.
- =TEXT(A2,"dd/mm/yyyy") returns text, which is good for labels but not for date maths.
- To count timestamps on one day without a helper column, use COUNTIFS with >= the date and < the date plus 1.
On this page+
To remove the time from a date in Excel, wrap the cell in INT, as in =INT(A2), and format the result as a date. That drops the time for real. A date format alone only hides the time, which looks the same but still breaks counts and lookups. This guide explains why, shows the formula and no-formula options, and covers how to count timestamps by day.
Why a date in Excel can carry a hidden time#
Excel stores every date as a whole number called a serial number: a day count in which 1 January 1900 is day 1. A time is stored as a fraction of a day: 0.5 is noon, 0.375 is 9:00 AM, 0.75 is 6:00 PM. A date with a time is the two added together.
| Cell shows | Value Excel stores |
|---|---|
| 5 Oct 2026 | 46300 |
| 5 Oct 2026 9:00 AM | 46300.375 |
| 5 Oct 2026 4:30 PM | 46300.6875 |
So "removing the time" means removing the decimal part. Exports from booking systems, tills and web forms usually include a time, even when you only care about the day. The article on why Excel dates are numbers explains the serial number system in more detail.
How to remove the time with INT#
INT rounds a number down to the nearest whole number, which keeps the date and throws away the time. With timestamps in column A:
- In B2, type
=INT(A2)and press Enter. - Fill it down (double-click the fill handle, or select the range and press Ctrl+D; Mac: ⌘D).
- If the result shows as a number like 46300, or still shows 12:00 AM, format it: select column B, then Home > Number Format > Short Date.
=INT(A2) turns 46300.375 into 46300, which displays as 5 Oct 2026. TRUNC gives the same result for dates: =TRUNC(A2) also returns 46300. INT and TRUNC only differ on negative numbers, which dates never are; see INT vs TRUNC for the details. A third option, =A2-MOD(A2,1), subtracts the time part directly. MOD returns the remainder after division, so MOD(A2,1) is the time alone (0.375). The MOD and INT guide shows more tricks like this.
To replace the original column with the clean dates, copy column B, then paste it over column A as values (Home > Paste > Paste Values) and delete the helper column.
Use TEXT when you want a date label#
TEXT turns a number into text in any format you choose:
=TEXT(A2,"dd/mm/yyyy")This returns the text 05/10/2026, with no time. That is useful for a label, a report heading or an email line, such as ="Orders on "&TEXT(A2,"d mmm yyyy"). But the result is text, not a date. You can't add days to it, and it won't match real dates in a lookup. Use INT when you need a date that still works in formulas. The TEXT function guide lists the format codes.
Hide the time with a number format#
Sometimes you only want the time out of sight. Changing the number format does that without touching the value:
- Select the cells.
- Press Ctrl+1 (Mac: ⌘1) to open Format Cells.
- Choose Date and a type with no time, or choose Custom and type
dd/mm/yyyy.
The cell now shows 05/10/2026, but the formula bar still shows the time, and the value is still 46300.375. That's the trap: everything looks like a plain date, but formulas see the time. The guide to changing the date format covers the format codes.
Count or look up dates that still have times#
If your data keeps its times, a formula that checks for a plain date finds nothing. Take these order times, with the date 5 Oct 2026 in F1:
| A | B | |
|---|---|---|
| 1 | Order time | Order |
| 2 | 5 Oct 2026 9:00 AM | S-501 |
| 3 | 5 Oct 2026 4:30 PM | S-502 |
| 4 | 6 Oct 2026 11:00 AM | S-503 |
| 5 | 5 Oct 2026 9:00 PM | S-504 |
| 6 | 7 Oct 2026 12:00 PM | S-505 |
| 7 | 6 Oct 2026 12:00 AM | S-506 |
=COUNTIF(A2:A7,F1) returns 0, because 46300.375 is not equal to 46300. Count the whole day instead: everything from the start of 5 Oct up to, but not including, the start of 6 Oct.
=COUNTIFS(A2:A7,">="&F1,A2:A7,"<"&F1+1)The result is 3 (S-501, S-502 and S-504). Notice S-506: it is exactly midnight on 6 Oct, so "<"&F1+1 correctly leaves it out. The same pattern works in SUMIFS.
Another option is =SUMPRODUCT(--(INT(A2:A7)=F1)), which strips the time from every cell before comparing; it also returns 3. For lookups, the guide to looking up a value by date shows how to match a date in data with times.
Remove the time in place without formulas#
If you don't want a helper column, Find and Replace can strip the time from date-time cells directly. Make a copy of the data first, because this changes the original values:
- Select the date-time cells.
- Press Ctrl+H (Mac: Control+H) to open Replace.
- In Find what, type a space and an asterisk:
*. - Leave Replace with empty and click Replace All.
This deletes everything after the first space in the cell's contents, which is the time. Excel then reads what's left as a plain date. It depends on how your dates are entered and on regional settings, so check a few cells afterwards: the formula bar should show no time. The INT method is safer when you're unsure.
Practise it#
Date questions in job tests often hide a time inside the data to see if you notice. Practise date basics in a live spreadsheet: you type the formula and it checks it instantly. Then practise number and date formats in the more formatting lesson, or try the exercise on this page first.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
The order times in A2:A7 include a time, so COUNTIF on the date in F1 returns 0. In F2, use COUNTIFS to count the orders from F1 up to (but not including) F1+1.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Order | ||||||
| 2 | S-501 | Orders | |||||
| 3 | S-502 | ||||||
| 4 | S-503 | ||||||
| 5 | S-504 | ||||||
| 6 | S-505 | ||||||
| 7 | S-506 | ||||||
| 8 | |||||||
| 9 | |||||||
| 10 |
Tip: Use the range A2:A7 twice: ">="&F1 for the start of the day and "<"&F1+1 for the start of the next day.
Practise this in a lesson
Frequently asked questions
How do I remove the time from a date in Excel?
In an empty column, type =INT(A2) and fill it down, then format the column as Short Date. INT keeps the whole number, which is the date, and drops the decimal, which is the time.
How do I hide the time without changing the value?
Select the cells, press Ctrl+1 (Mac: Command+1) and choose a date format with no time, such as 14-Mar-2012. The time is still stored, so use INT if you need to match or count by date.
Why does COUNTIF return 0 for a date that is in my data?
The cells probably contain times as well. A date with a time, such as 5 Oct 2026 9:00 AM, is a bigger number than the date alone, so it doesn't match. Count with >= the date and < the next day instead.
What is the difference between INT and TRUNC for dates?
For dates, none: both drop the decimal part and leave the date. They differ only for negative numbers, which dates never are.