import data time format

S

Steve

Hi, I have imported some data into excel from a text file.

Column1: date (mm:dd:yy)
column2 : time eg 1500 (24 hour time, however only imported a string)

What I need to do is combone these two columns into a single column that
consists of date & time.
eg 03/15/2003 3:00:00 PM

Is this possible?

Thank you.
 
J

J.E. McGimpsey

One way:

In column C, enter:

C1: =TIME(B1/100, MOD(B1,100),0)

and copy down as far as necessary.

Select the cells in column C. Copy them.

Select the corresponding cells in column A. Choose Edit/Paste
Special and select the Values and Add Radio buttons.

Format the cells in column A as

mm/dd/yyyy h:mm:ss AM/PM
 
S

Steve

Perfect, Thanks.

J.E. McGimpsey said:
One way:

In column C, enter:

C1: =TIME(B1/100, MOD(B1,100),0)

and copy down as far as necessary.

Select the cells in column C. Copy them.

Select the corresponding cells in column A. Choose Edit/Paste
Special and select the Values and Add Radio buttons.

Format the cells in column A as

mm/dd/yyyy h:mm:ss AM/PM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top