Format Dates - Time Zones

nniedzielski

Well-known Member
Joined
Jan 8, 2016
Messages
598
Office Version
  1. 2019
Platform
  1. Windows
I have a sheet that has the dates formatted like this:

2021-06-09 17:00 America/Chicago
2021-06-10 17:00 America/New_York
2021-06-17 08:00 America/Indianapolis
2021-06-09 13:00 America/Chicago

what would be the quickest and easiest way to get this trimmed down to just the date? Removing time and the country and cities
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How about
Excel Formula:
=LEFT(A2,10)+0
 
Upvote 0
How about
Excel Formula:
=LEFT(A2,10)+0
That works, but i have to insert a column, do this step,copy the formula down, copy and paste as value, ensure its formatted as a date. Is there a way to just remove the whole section from the column without any further steps?
 
Upvote 0
You can use text to columns, fixed width, set first break at position 10 & clear any others, next, select column 2 in the data preview & click do not import, Finish
 
Upvote 0
Solution

Forum statistics

Threads
1,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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