ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   DATE AND TIME CONVERSION HELP (https://www.excelbanter.com/excel-worksheet-functions/224454-date-time-conversion-help.html)

John T[_2_]

DATE AND TIME CONVERSION HELP
 
I download reports in date/time format 2009.03.10 22:35. I would like to
have the year in one column, the time in one column and date in another.
Preferred would be:

Year mo/da hh:mm
2009 03/10 22:35

Any help is greatly appreciated.

John

Eduardo

DATE AND TIME CONVERSION HELP
 
Hi John,
Do Text to column, Fixed with, then click where you want the column to
finish and then click next, next Finish
Hope this help

"John T" wrote:

I download reports in date/time format 2009.03.10 22:35. I would like to
have the year in one column, the time in one column and date in another.
Preferred would be:

Year mo/da hh:mm
2009 03/10 22:35

Any help is greatly appreciated.

John


Shane Devenshire

DATE AND TIME CONVERSION HELP
 
Hi,

I don't think you can do this in one step with the Text to Columns command.
Also, if you system date setting does not use period for separators then you
need to take another approach.

Suppose the entries are in column A starting in A1:

To get the entire date in C1 enter
=--LEFT(SUBSTITUTE(A1,".","-"),10)
and format as a date
To get the time in D1 enter
=--MID(A1,12,5)
and format as a time
to get the year in E1 enter
=YEAR(C1)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"John T" wrote:

I download reports in date/time format 2009.03.10 22:35. I would like to
have the year in one column, the time in one column and date in another.
Preferred would be:

Year mo/da hh:mm
2009 03/10 22:35

Any help is greatly appreciated.

John



All times are GMT +1. The time now is 12:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com