Date Format in Excel

DWB82

New Member
Joined
Jun 4, 2015
Messages
16
Hi Everyone

I have a file with a date/Time format that I am having some issues with. I have tried correcting this using both of the formulas that work with dates.

The only way that I have found to work with it is to run text to columns and then build the date up from each of the columns that this splits in to.

I have also attempted a mixture of Left, Mid & Right however, this has not worked either.

I would like either a formula or a Macro that is able to reference the data and put it in to a format that I am able to work with. The date information that I am working with looks like this "6/27/2019 7:53:16 AM".

I have tried to attache a file however, have been unable to.

If anything is unclear drop me a line.

Thanks in advance
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,342
=LEFT(A1,FIND(" ",A1)-1)+0

+0 forces the result into a number which is an Excel date, without the +0 the result would just be a string of characters.

You can't attach files on this site.
 

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,707
Your sample Date/Time is good and does not demonstrate a problem.

"...and put it in to a format that I am able to work with." How are you trying to work with the date/time serial number?
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,633
Office Version
365
Platform
Windows
You can convert the date/time into 2 columns, one date and one time using Data>Text to columns.

Use Fixed width, put a break between the date and time, use Date for the column data format for both columns and specify the MDY format for the date column.
 

Watch MrExcel Video

Forum statistics

Threads
1,101,946
Messages
5,483,831
Members
407,415
Latest member
Anton1999

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top