excel how to remove time from date

Excel: Remove Time from Date

By Hannah Thompson
AD

Have you ever found yourself working with dates in Excel, only to realize that the data also includes time? While this might not be an issue in all cases, it can lead to complications when you need to perform calculations or comparisons based solely on dates. Fortunately, Excel provides a few methods to remove time from dates. Let's explore these solutions.

Before we dive into the step-by-step guides, it's important to understand that Excel stores dates and times as decimals. This means that the whole number part represents the number of days after December 30, 1899, and the decimal part represents the time. Knowing this will help you grasp the underlying logic behind the methods discussed below.

Using Integer Division

One of the simplest ways to remove time from dates is by using integer division. This method converts the decimal part of the date to zero, effectively removing the time. Let's see how it works.

AD
How to Remove Time from Date in a Pivot Table in Excel (A Step by Step Method) - ExcelDemy
How to Remove Time from Date in a Pivot Table in Excel (A Step by Step Method) - ExcelDemy
How to Remove Time from Date in Excel | MyExcelOnline
How to Remove Time from Date in Excel | MyExcelOnline
Set Due Date Reminder Formula in Excel
Set Due Date Reminder Formula in Excel

Assuming your dates are in Column A (A2:A100), put this formula in Cell B2 and drag it down to B100: `=INT(A2)`. The `INT` function tracks the integer part of the value and discards the remainder. So, for example, if your date is '44118.53333333333' (representing December 31, 2022 at 3:20 PM), the result would be '44118' (representing December 31, 2022 at 12:00 AM).

Using Text to Columns Feature

Another method is to use Excel's Text to Columns feature, which separates data based on specified delimiters. This method can be useful when you want to keep the date and time in separate columns but still need to perform calculations on the date alone.

How to Remove Time from Date in Excel (6 Methods) - ExcelDemy
How to Remove Time from Date in Excel (6 Methods) - ExcelDemy
NEW Date Picker in Excel for Web – Finally Here
NEW Date Picker in Excel for Web – Finally Here
the microsoft excel date and time functions poster
the microsoft excel date and time functions poster

After selecting your data, click on Data > Text to Columns. Choose either Delimited or Fixed width, depending on your data, and click Next. Select the delimiter (usually a space or a tab), or specify the column width, and click Next again. Ensure that the data types for the date and time columns are correct, then finish by clicking Finish.

Using Custom Formatting

If you're primarily concerned with displaying dates without time, you can use custom formatting to change the way dates are displayed in the cell. This method won't change the actual date but will make the time invisible.

AD

To apply custom formatting, right-click the cell header of the date column, select Format Cells, and then Custom. In the Type box, enter 'yyyy-mm-dd'. Click OK. This will display the date in 'YYYY-MM-DD' format, without the time.

EVERYTHING about working with Dates & Time in Excel
EVERYTHING about working with Dates & Time in Excel
the excel time and date sheet
the excel time and date sheet
10 Excel Tricks to Clean Messy Data (Fast!) 🧽
10 Excel Tricks to Clean Messy Data (Fast!) 🧽
Time worked in excel
Time worked in excel
Why Excel Shows ##### Instead of a Date
Why Excel Shows ##### Instead of a Date
How to Remove Time From Date in Excel
How to Remove Time From Date in Excel

Formatting as Date with No Time

Similar to the previous method, you can also format your data as a date with no time. Right-click the cell header, select Format Cells, choose Custom, then enter '[yyyy-mm-dd]' (with the square brackets). Click OK. This format will display the date as 'YYYY-MM-DD', but the internal Excel data type remains as date/time, preserving the original data for any further calculations.

Handling dates and times efficiently in Excel can greatly enhance your productivity and accuracy. By mastering these methods to remove time from dates, you'll be well-equipped to handle any date-related tasks that come your way. Happy Exceling!

AD
VBA to Remove Time from Date in Excel (3 Methods)
VBA to Remove Time from Date in Excel (3 Methods)
a computer screen with the text stop washing time typing multiple dates in excel 2010 and 2012
a computer screen with the text stop washing time typing multiple dates in excel 2010 and 2012
How To Change Date Format In Sheets!
How To Change Date Format In Sheets!
AD