Delete Time from a Date & Time Field

nemo1478

New Member
Joined
Feb 14, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
How do I delete the times from the column of Date and Time. I have tried and tried to change the format of the cells but for some reason it just doesn't work.

All the times are after the year 2020 so if I can find a way to delete everything after 2020 that might work too.
 

Attachments

  • Untitled.png
    Untitled.png
    110.8 KB · Views: 6

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
maybe text2columns with space as delimiter then delete time column
 
Upvote 0
You could use this formula to only return the date part.

=INT(C3)

Alternatively:

1 Select the data.
2 Goto Data>Text to columns...,
3 Select Delimited, select Space as a delimiter
4 On the next step select MDY for the Column data format of the first column and Do not import for the second.
5 Click Finish.
 
Upvote 0
Thank you so much! It worked.
If it was the Text to Columns then I would suggest 2 changes as there is no need to subsequently delete the time part(s).

With your sample data and using a space delimiter you would (by default) have 2 extra columns to delete, though that can be avoided - see below. I would use Text to Columns with fixed width.
For me , that comes up like this

1596527089529.png


Click Next and in that window click in the 2nd column to make it black and choose 'Do not import column' then Finish

1596527204071.png



You could just as well use Delimited with space as delimiter but there would then be two columns to 'Do not import column'
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top