Solved

Excel - data downlaoded to Excel, unable to change date time format

Posted on 2014-12-03
8
346 Views
Last Modified: 2014-12-03
We downloaded data regularly from our CMMS software, Maximo, to Excel.  However, once in Excel, we are unable to select a date/time column and format cells.  

Example -
Date/time comes across as 2/22/2014 12:00 a.m.
Change:  Format Cells - Date - 2/22/2014

I can change the column format and then go into the individual cell and when I type the date it converts - but does not auto convert all the date/times?

Thank you.
0
Comment
Question by:washvt
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 40478844
Sounds like the dates are coming in as text. Entering the cell and pressing enter is forcing Excel to re-assess the contents of the cell and will format accordingly.

You can use the Text to Columns function to do this on a range.

Thanks
Rob
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40478850
assuming your data  starts in a2 put this formula in the next column and drag down

you will get the result in the serial number then you change the format to dates and then it will only show dates without any time in it.

=DATEVALUE(MONTH(A2)&"/"&DAY(A2)&"/"&YEAR(A2))

once done then you may wish to delete the data column that has times
0
 
LVL 18

Expert Comment

by:Simon
ID: 40478854
I don't know Maximo, but if it comes in as a delimited file, the first place to catch it is in the delmited file import wizard. Set the data type of that column to date.

If that doesn't work and still have text in hte original format, use the =datevalue(A1) function to get the date and then format the cell with the formula in to whatever date format you like.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:washvt
ID: 40478855
Thank you Rob. That worked perfectly!  Happy Holidays.
0
 

Author Closing Comment

by:washvt
ID: 40478857
Thanks!
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 40478861
Holidays haven't started in the UK yet!! Then again, nor has the snow!

Thanks
Rob
0
 
LVL 18

Expert Comment

by:Simon
ID: 40478869
>You can use the Text to Columns function to do this on a range.
@Rob: Nice - I've never thought of doing this for in-place conversion of a single column
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 40478872
Something I picked up on EE, don't recall which Expert though.

Works well when all values are text. Not so well when download is in numbers but Excel doesn't recognise the values as dates eg 14/12/2014, to me that is 14th December but if it were in US format 12/14/2014 my Excel wouldn't recognise it.

Selecting the whole range and using text to columns could mess up those that were recognised.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question