Excel guide · 5 min read
How to remove the time from a date in Excel
=INT(B2) to keep only the date part of a date-time, then format the cell as a date (Home > Number Format > Short Date). Excel stores a date-time as a number where the whole part is the day and the decimal is the time, so INT drops the time. Changing the format alone only hides the time; the cell still holds it.Sample data
Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Order | Placed at | Channel | Amount | Report day | Imported as text | |
| 2 | WEB-5521 | Oct 5, 2026 | Web | 84.9 | Oct 6, 2026 | 2026-10-06 14:22 | |
| 3 | WEB-5522 | Oct 5, 2026 | Phone | 212 | |||
| 4 | WEB-5523 | Oct 6, 2026 | Web | 46.5 | |||
| 5 | WEB-5524 | Oct 6, 2026 | Web | 129 | |||
| 6 | WEB-5525 | Oct 6, 2026 | Phone | 75.25 | |||
| 7 | WEB-5526 | Oct 6, 2026 | Web | 310 | |||
| 8 | WEB-5527 | Oct 7, 2026 | Web | 58 | |||
| 9 | WEB-5528 | Oct 7, 2026 | Phone | 96 |
Download this sheet as an Excel practice file (.xlsx)
Why the time is there even when you cannot see it
Excel stores every date as a whole number of days (October 5, 2026 is 46300) and every time as a fraction of a day (noon is 0.5). A date-time is both added together. The orders in column B came from a web shop export, so each one holds the exact moment it was placed, even though the column is formatted to show only the date.
That hidden decimal is what breaks things: a date-time is never equal to the plain date, so lookups, matches and SUMIFS on that day quietly skip it.
Result: FALSE
FALSE. B3 shows Oct 5, 2026, but it holds Oct 5 at 1:47 PM, which is 46300.574, not 46300.
Method 1: INT keeps only the date
INT rounds a number down to the nearest whole number. For a date-time that removes the decimal, which is exactly the time. Put it in a helper column next to the original and fill it down.
TRUNC(B3) gives the same result for dates, since dates are never negative. Do not use ROUND: it rounds anything from noon onwards up to the next day, so WEB-5526 at 11:59 PM would land on October 7.
Excel may show the result as a number, or as a date with 0:00 on the end, depending on the format it picks up. Select the column and choose Home > Number Format > Short Date.
Result: 46300 shows as Oct 5, 2026 with the custom mmm d, yyyy format
46300, the serial number for Oct 5, 2026 at midnight. Now =INT(B3)=DATE(2026,10,5) returns TRUE.
Formatting only hides the time
If you only need the sheet to look right for printing or a screenshot, a date format is enough. Pick a format without hours and the time disappears from view. The value does not change, so every formula that reads the cell still sees the time.
This is the trap behind most "my SUMIFS is missing rows" questions. Click a cell and look at the formula bar: if it shows 10/5/2026 1:47:00 PM, the time is still in there.
- Select B2:B9.
- Press Ctrl+1 to open Format Cells.
- On the Number tab choose Date, then a type with no time, such as 3/14/2012.
- Click OK. The cells now show only dates, but the stored values are unchanged.
SUMIFS and COUNTIFS that miss date-times
Say you want the total for October 6. Pointing SUMIFS at the date in F2 only matches cells that are exactly midnight on that day. Here that is the one order typed in as a plain date, WEB-5523. The three orders with a time are skipped.
=SUMIFS(D2:D9,B2:B9,F2) returns 46.5. The fix is to ask for "on or after midnight on the day, and before midnight on the next day". This works on the raw date-times, so you do not even need a helper column.
Result: 560.75
560.75: WEB-5523, 5524, 5525 and 5526 (46.5 + 129 + 75.25 + 310). The 11:59 PM order counts and the 12:04 AM order on Oct 7 does not.
Same idea for counts and extra conditions
Swap SUMIFS for COUNTIFS to count orders per day, and add more range/criteria pairs as usual. Use "<" with F2+1 rather than "<=" with F2: "<=" stops at midnight on the 6th and misses everything after it.
If you would rather test the date part directly, =SUMPRODUCT((INT(B2:B9)=F2)*D2:D9) also returns 560.75 and works in every version of Excel.
Result: 485.5
485.5: the three Web orders on October 6 (46.5 + 129 + 310). WEB-5525 was a phone order.
Keep just the time instead
The other half of a date-time is the decimal. MOD(B3,1) returns the remainder after dividing by 1, which is the time of day. Format the cell as Time (h:mm) to read it. This is handy for "orders after 6 PM" checks or for splitting a date-time into two columns.
Result: 0.57430555556 shows as 13:47 with the custom h:mm format
0.574, which is 13:47 (1:47 PM) as a time.
Date-times that came in as text
Some exports bring date-times in as text, like G2. Text sits left-aligned, ISNUMBER returns FALSE, and SUMIFS date criteria never match it. Convert it to a real date first.
For a whole column, Data > Text to Columns does it in place: choose Delimited, tick Space, set the first column to Date (YMD) and set the time column to "Do not import column (skip)". For a formula, =DATEVALUE(LEFT(G2,10)) works in Excel for ISO-style text, or build the date from its pieces as below. In Power Query, select the column and choose Transform > Date > Date Only.
Result: Oct 6, 2026 shows as Oct 6, 2026 with the custom mmm d, yyyy format
46301, a real date for Oct 6, 2026 with the time dropped, ready for SUMIFS and sorting.
Replace the originals with the dates
A helper column of INT formulas still depends on column B. To replace the date-times permanently, paste the results back as values.
- In E2 enter
=INT(B2)and fill it down to E9. - Copy E2:E9.
- Select B2, then choose Home > Paste > Paste Values (or Ctrl+Alt+V, pick Values, OK).
- Delete column E and format B as Short Date.
Common mistakes
Changing the format and expecting SUMIFS to work
Formatting does not change the value. Either use INT in a helper column or use a ">="&day and "<"&day+1 pair in the criteria.
Using ROUND to drop the time
ROUND sends every time from 12:00 PM onwards to the next day. Use INT or TRUNC, which always round down.
Using "<="&F2 as the end of the day
F2 is midnight at the start of the day, so "<=" excludes everything after it. Use "<"&F2+1.
INT returns #VALUE!
The cell is probably text that Excel could not read as a date, for example in a format that does not match your regional settings. Convert it with Text to Columns or rebuild it with DATE(LEFT(),MID(),MID()).
FAQ
How do I remove the time from a date in Excel without a formula?
To only hide it, format the cells as Short Date. To actually remove it in place, use Data > Text to Columns on text values, or Transform > Date > Date Only in Power Query. For real date-time values, an INT helper column pasted back as values is the most reliable way.
Why does my date show 12:00 AM or 0:00?
The cell has a date-time format and the time part is zero (midnight). Apply Short Date format to hide it. If it shows a time other than midnight, the cell still holds a time and you need INT.
What is the difference between INT and TRUNC for dates?
For dates and date-times they give the same result, because the values are positive. They differ only on negative numbers, where INT rounds down (-2.5 becomes -3) and TRUNC cuts toward zero (-2.5 becomes -2).
How do I count rows for one date when the column has times?
Use a range of one day: =COUNTIFS(B2:B9,">="&F2,B2:B9,"<"&F2+1). It counts every row from midnight on that date up to, but not including, midnight on the next one.
Functions used
INTRounds down to integerMODRemainder after divisionSUMIFSAdds with several conditionsCOUNTIFSCounts with several conditionsSUMPRODUCTMultiply then addDATEBuilds a dateLEFTCharacters from the startMIDCharacters from the middleISNUMBERIs it a number?ROUNDRounds to digits
Related guides
- SUMIFS between two dates in Excel
- Count cells between two dates in Excel
- Excel dates not sorting correctly: how to fix it
- How to calculate days between two dates in Excel
- Get the quarter from a date in Excel
- Convert minutes to hours and minutes in Excel
Updated