How to Remove Time From Timestamp in Excel

Learn multiple Excel methods to remove time from timestamp with step-by-step examples and practical applications.

excelformulaspreadsheettutorial
11 min read • Last updated: 7/2/2025

How to Remove Time From Timestamp in Excel

Why This Task Matters in Excel

Accurate, consistent date information underpins reporting, scheduling, forecasting, and countless other business processes. Yet data often arrives with combined date–time stamps such as “2023-07-15 14:23:08”. When all you really need is the calendar date, those trailing hours, minutes, and seconds become noise. If you do not strip the time portion, identical activities logged at different moments will be treated as separate records. This inflates pivot-table counts, breaks lookup formulas, and causes analytical models to mis-group data.

Consider a sales manager reconciling daily invoices exported from a point-of-sale system. Each transaction’s timestamp differs by seconds, so a unique date key never forms. Without removing the time component, daily revenue cannot be summed accurately and dashboards lose credibility. In supply-chain analysis, purchase orders scheduled “2024-01-10 00:01:05” versus “2024-01-10 23:59:00” appear to belong to separate days even though they occur on the same shipping date. Payroll departments, medical researchers, and customer-support teams face similar headaches.

Excel provides several approaches—formulas, formatting, Flash Fill, Power Query, and VBA—that eliminate the time stamp. Which one is “best” hinges on context: raw data volumes, refresh frequency, downstream automation, and colleague skill levels. The beauty of Excel is its flexibility: a one-cell formula can solve a quick ad-hoc problem, while a fully automated Power Query transform can cleanse thousands of rows nightly. Ignoring this skill forces analysts into manual copy/paste cycles or complicated text parsing in other software, risking errors and wasting hours.

Mastering the removal of time elements also deepens understanding of Excel’s date-time serial system. Once you grasp how Excel stores dates as whole integers and times as decimal fractions, other tasks—aging calculations, network-day counts, and time-based conditional formatting—become intuitive. Therefore, learning to strip time is not a niche trick; it is foundational knowledge that unlocks a host of advanced scheduling and reporting techniques.

Best Excel Approach

The fastest, most widely compatible method is to convert the timestamp to its integer portion, because Excel stores dates as whole numbers and times as decimals to the right of the decimal point. Two formula options achieve this:

=INT(A2)

INT truncates the decimal part, leaving only the whole-number date serial. An alternative that is slightly more descriptive is:

=DATEVALUE(A2)

DATEVALUE attempts to interpret the text or numeric timestamp and returns the date serial. INT works on any numeric date-time value, whereas DATEVALUE also converts text strings like \"2023-07-15 14:23:08\". Use INT when your data is already recognized as a proper date-time value (right-aligned with a numeric serial visible in the Formula Bar). Use DATEVALUE when the data was imported as text.

Prerequisites: your worksheet must hold valid Excel-recognised timestamps, or DATEVALUE must be able to parse the text using your system’s regional settings. Both formulas output a serial number; simply apply a date-only Number Format (for example, yyyy-mm-dd) to display it properly. Because these formulas are non-volatile and rely on basic arithmetic, they remain fast even on large tables.

If you require a one-time static conversion, copy the formula results and use Paste Special ▸ Values; for dynamic datasets, keep the formulas live or migrate the logic into Power Query for an automated refresh.

Parameters and Inputs

INT and DATEVALUE each require only a single parameter: the cell reference containing the timestamp. The input may be:

  • Recognised Excel date-time serials (e.g., 45058.682)
  • Text strings convertible to dates (“2024-01-21 18:45:00”)
  • Ranges such as [A2:A5000] when entered as a spilled or array formula in Microsoft 365

Data preparation tips:

  1. Ensure there are no leading/trailing spaces; TRIM cleans text where necessary.
  2. Verify regional date order (day-month-year vs month-day-year). If DATEVALUE mis-parses, split the components or use DATE with MID/LEFT/RIGHT.
  3. Blank cells should be handled with IF to avoid a #VALUE! error. Example:
=IF(A2="","",INT(A2))

For arrays, wrap with IFERROR or LET for streamlined processing. Edge cases include timestamps earlier than 1900-01-01 (unsupported) or text containing non-breaking spaces. Coerce problematic text with VALUE() or double unary operators (--).

Step-by-Step Examples

Example 1: Basic Scenario

Imagine an export of customer log-ins with timestamps in [A2:A6]:

  • A2: 2023-11-01 08:12:45
  • A3: 2023-11-01 17:05:10
  • A4: 2023-11-02 09:01:07
  • A5: 2023-11-02 22:15:55
  • A6: 2023-11-03 11:30:00

Goal: list the calendar date in column B.

Step 1 – Enter the formula =INT(A2) in B2.
Step 2 – Copy it down to B6. You will see numbers such as 45237.
Step 3 – Select [B2:B6], press Ctrl+1, choose Date ▸ Custom, and set format yyyy-mm-dd. Now B2 shows 2023-11-01, B4 shows 2023-11-02, etc.

Why it works: INT truncates the decimal fraction (time), leaving the integer corresponding to midnight of that date. Two log-ins on 2023-11-01 now share the identical value 45237, enabling a pivot table to count daily users.

Troubleshooting: If INT returns the same numeric serial for every row, check whether the source column is text (left-aligned). Convert with VALUE(A2) first or switch to DATEVALUE.

Common variations:

  • Use TEXT(INT(A2),\"yyyy-mm-dd\") to directly show a formatted string.
  • Combine with UNIQUE and COUNTIF for daily unique log-ins.

Example 2: Real-World Application

Scenario: A warehouse management system exports shipment scans with timestamps. Analysts need to calculate daily pick volumes, but the export includes mixed formats—some proper date-time serials, some text.

Data layout:

  • Column A, “ScanTime”, rows 2-10, mixed values
  • Column B, “DateOnly”, to be calculated
  • Column C, “Units”, numeric

Step-by-step:

  1. Inspect A2. If Formula Bar shows “2024-02-10 06:10:12” (text), apply a helper column:
=IF(ISNUMBER(A2),INT(A2),DATEVALUE(A2))
  1. Copy downward. Cells with numeric timestamps use INT; text rows use DATEVALUE. Surround with IFERROR to capture parsing failures.
  2. Format column B as dd-mmm-yyyy.
  3. Build a pivot table: Rows = DateOnly, Values = Sum of Units. Daily totals immediately appear.

Business impact: The manager now sees exact pick counts per day, enabling staffing adjustments. Without removing the time, each scan would form its own pivot row, producing cluttered, unusable reports.

Integration: The same formula feeds network-days calculations to project dispatch timelines. For scalability, replicate the logic in Power Query: transform ▸ Date ▸ Date Only.

Performance notes: The dual INT/DATEVALUE formula is lightweight (single pass). With 50 000 scans it recalculates almost instantly on modern hardware, far faster than concatenating text parts or scripting.

Example 3: Advanced Technique

Challenge: A call-center log in [Table1] records start and end call timestamps. Analysts must calculate service level—the percentage of calls answered within 24 hours of the customer ticket date. However, the ticket system stores a pure date (TicketDate), while the call log uses full timestamps (CallTime). To relate them, remove time from CallTime inside a dynamic array formula and evaluate across two tables.

Steps:

  1. In cell G2 enter:
=LET(
    times, Table1[CallTime],
    dates, INT(times),
    tickets, TicketTable[TicketDate],
    qualified, COUNTIFS(dates, tickets, Table1[Answered], TRUE),
    totals, COUNTIFS(TicketTable[TicketDate],"<>",TicketTable[Service], "Support"),
    qualified/totals
)

Explanation:

  • INT(times) strips time from each call.
  • COUNTIFS counts calls whose date matches TicketDate and are marked Answered = TRUE.
  • Division yields on-time percentage.

Edge cases: If CallTime contains blanks, INT returns zero. LET variable “times” can be wrapped with IF to ignore empty rows.

Optimization: By stripping time once in the LET construct, you avoid repeating INT in every COUNTIFS criteria, boosting calculation speed on 100 000-row tables.

Professional tips:

  • Convert both tables to proper Excel Tables for structured references.
  • Use dynamic array spill to eliminate helper columns.
  • For scheduled reporting, shift logic into Power Query’s “Date. DateOnly” step for maintenance-free refresh.

Tips and Best Practices

  1. Always verify whether your timestamp is numeric or text before choosing INT or DATEVALUE. Use ISTEXT/ISNUMBER or simply check alignment.
  2. Format first: right-click ▸ Format Cells ▸ Date to confirm the conversion worked. If you still see time, you probably applied formatting before removal.
  3. When possible, keep timestamps intact in raw data and add a separate Date-Only column. This preserves original detail for audits.
  4. In large datasets, move cleansing to Power Query; its “Add Column ▸ Date ▸ Date Only” step processes thousands of rows faster than formulas.
  5. Combine LET and dynamic arrays to reduce helper columns and simplify workbooks—especially in Microsoft 365.
  6. Document regional assumptions (d/m/y vs m/d/y) in a comment or Data Validation input message to prevent future mis-parsing.

Common Mistakes to Avoid

  1. Applying a date-only Number Format without removing the time. The timestamp still contains decimals, so pivot tables and lookups misbehave even though the sheet “looks” correct.
  2. Using TEXT to convert to a date string, then expecting it to behave numerically. TEXT outputs text, which breaks chronological sorting. If you must return text, wrap later functions with VALUE.
  3. Forgetting that DATEVALUE relies on regional settings. A file created in Europe (“31-12-2024 10:00”) may mis-parse in the United States. Explicitly split components or use DATE(year,month,day).
  4. Copy-pasting formula results without “Paste Values”. The moment you delete the original column, formulas referencing it return #REF!. Always hard-paste if the source column will be removed.
  5. Attempting to truncate with LEFT/RIGHT on numeric cells. Those text functions implicitly coerce numbers to text, leading to unexpected serials like “45237.6753” becoming “4”.

Alternative Methods

MethodStrengthsWeaknessesBest For
Number Format OnlyZero formulas; quickestTime still exists in cellPresentation-only situations
INT(A2)Simple, fast, non-volatileFails on text timestampsNumeric data exports
DATEVALUE(A2)Converts textSlower on huge ranges; regional dependenceMixed or text-based data imports
TEXT(A2,\"yyyy-mm-dd\")Returns readable stringOutput is text, not numericBuilding labels/headers
Flash FillNo formulas, intuitiveManual trigger, not dynamicOne-off cleanses
Power Query — Date OnlyScales to millions, refreshableRequires data model knowledgeAutomated ETL workflows
VBA macroFull control, custom formatsRequires macro-enabled file, security warningsRepetitive processes where formulas hinder performance

Choose INT when the data is already a recognised timestamp and speed is critical. Switch to Power Query when the dataset is large, refreshed frequently, or part of a broader data-mash-up pipeline. Combine methods: prototype with formulas, then migrate the logic to Power Query or VBA for production.

FAQ

When should I use this approach?

Use INT or DATEVALUE when you need a numeric date for calculations and the dataset lives primarily within Excel. They excel in ad-hoc analysis, pivot tables, and dashboards where refreshes are manual or small.

Can this work across multiple sheets?

Yes. Reference the timestamp sheet directly, for example =INT('Raw Data'!A2). For thousands of linked rows, consider placing the formula in the source sheet to prevent cross-sheet volatility. Power Query can merge multiple sheets and apply “Date Only” in one consolidated step.

What are the limitations?

INT cannot parse text, and DATEVALUE can mis-interpret regional formats. Both output serials above 1, which means they cannot represent dates before 1900-01-01 in Windows Excel. If you need historical dates, treat them as text or use alternative software.

How do I handle errors?

Wrap your formula with IFERROR: =IFERROR(INT(A2),"") to return blank. For mass errors caused by regional issues, split the timestamp with TEXTSPLIT or MID and rebuild via DATE.

Does this work in older Excel versions?

INT and DATEVALUE have existed since the earliest Excel releases, so Excel 97 onward is covered. Dynamic arrays and LET require Microsoft 365 or Excel 2021; otherwise, use helper columns.

What about performance with large datasets?

INT is nearly instantaneous because it is a single arithmetic operation. DATEVALUE involves parsing, so performance degrades linearly with row count. For 500 000 rows, apply the Date Only step in Power Query or a database. Disable automatic calculation while pasting formulas, then recalc once.

Conclusion

Removing the time component from timestamps is a small investment with outsized returns: cleaner pivot tables, accurate daily aggregations, and streamlined lookups. By mastering both quick formulas and scalable tools such as Power Query, you add a robust arrow to your Excel quiver. Practice the techniques on your own data exports, experiment with LET for elegant arrays, and explore automated transforms for enterprise workloads. The next time a colleague wonders why their daily totals look wrong, you will have the answer—and the skill—to fix it in seconds.

We use tracking cookies to understand how you use the product and help us improve it. Please accept cookies to help us improve.