ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. How to Remove the Time From a Date in Excel

How to Remove the Time From a Date in Excel

By ExcelReady Team·Updated November 2, 2026·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+
  1. Why a date in Excel can carry a hidden time
  2. How to remove the time with INT
  3. Use TEXT when you want a date label
  4. Hide the time with a number format
  5. Count or look up dates that still have times
  6. Remove the time in place without formulas
  7. Practise it

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 showsValue Excel stores
5 Oct 202646300
5 Oct 2026 9:00 AM46300.375
5 Oct 2026 4:30 PM46300.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:

  1. In B2, type =INT(A2) and press Enter.
  2. Fill it down (double-click the fill handle, or select the range and press Ctrl+D; Mac: ⌘D).
  3. 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:

Excel formula
=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:

  1. Select the cells.
  2. Press Ctrl+1 (Mac: ⌘1) to open Format Cells.
  3. 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:

AB
1Order timeOrder
25 Oct 2026 9:00 AMS-501
35 Oct 2026 4:30 PMS-502
46 Oct 2026 11:00 AMS-503
55 Oct 2026 9:00 PMS-504
67 Oct 2026 12:00 PMS-505
76 Oct 2026 12:00 AMS-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.

Excel formula
=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:

  1. Select the date-time cells.
  2. Press Ctrl+H (Mac: Control+H) to open Replace.
  3. In Find what, type a space and an asterisk: *.
  4. 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.

fx
ABCDEFG
1
Order time
Order
Date
46300
2
46300.375
S-501
Orders
3
46300.6875
S-502
4
46301.45833
S-503
5
46300.875
S-504
6
46302.5
S-505
7
46301
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

LessonHow Excel stores dates: DATE, YEAR, MONTH, DAYLearn why every date is secretly a number, then build dates with DATE and take them apart with YEAR, MONTH and DAY.LessonMore formattingItalic and underline, comma style, date format, and resetting a cell to General.Function guideTEXTFormat dates, prices and percentages inside labels with Excel's TEXT function. Format codes, common mistakes and a live practice exercise.

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.

Sources

  • INT function - Microsoft Support
  • TEXT function - Microsoft Support
  • Date systems in Excel - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Why a date in Excel can carry a hidden time
  2. How to remove the time with INT
  3. Use TEXT when you want a date label
  4. Hide the time with a number format
  5. Count or look up dates that still have times
  6. Remove the time in place without formulas
  7. Practise it

Keep reading

Math· 6 min read

MOD and INT in Excel: Remainders and Whole Numbers

MOD returns the remainder after division: =MOD(127,12) gives 7, because 12 goes into 127 ten times with 7 left over. INT rounds a number down to a whole number: =INT(127/12) gives 10. Use them together to split a quantity into full groups and what's left, such as boxes and spare items, or hours and minutes.

Comparisons· 6 min read

INT vs TRUNC in Excel: Different With Negatives

INT and TRUNC give the same result for positive numbers: both remove the decimals, so 7.8 becomes 7. They differ with negative numbers. INT always rounds down to the next lower whole number, so -7.8 becomes -8. TRUNC simply cuts off the decimals, so -7.8 becomes -7. TRUNC can also keep a set number of decimal places.

Dates· 5 min read

How to Change the Date Format in Excel

To change the date format in Excel, select the cells, press Ctrl+1 (Mac: ⌘1), choose Date or Custom, and pick or type a format such as dd/mm/yyyy. The value stays the same; only the display changes. If a date won't change, it's stored as text and must be converted first. For a formatted date as text, use =TEXT(A2,"yyyy-mm-dd").

More on dates

  • Round Time to the Nearest 15 Minutes in Excel
  • Calculate the Difference Between Two Times in Excel
  • TODAY Function in Excel: Always-Current Dates
  • Convert a Unix Timestamp to a Date in Excel
  • Find Upcoming Birthdays in Excel With a Formula
  • How to Calculate the Week Ending Date in Excel
All dates articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free