ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   date and time separation (https://www.excelbanter.com/excel-discussion-misc-queries/235126-date-time-separation.html)

MaryPat

date and time separation
 
I ran a report and then imported the dates and times into a new spreadsheet
and they went into 1 column. I did a copy and paste so that I had 2 colums
and then formatted 1 of them into date and 1 of them into time. However, when
you click on any cell, it still shows both the date and the time and so I am
not able to sort by either one.

Can anyone tell me if there is a way to do what I want to do?

Eduardo

date and time separation
 
hI,
Do text to columns, that will split your information

"MaryPat" wrote:

I ran a report and then imported the dates and times into a new spreadsheet
and they went into 1 column. I did a copy and paste so that I had 2 colums
and then formatted 1 of them into date and 1 of them into time. However, when
you click on any cell, it still shows both the date and the time and so I am
not able to sort by either one.

Can anyone tell me if there is a way to do what I want to do?


Jacob Skaria

date and time separation
 
Suppose A1 has both date and time in excel date/time format
B1
=DATE(YEAR(A1),MONTH(A1),DAY(A1))
C1
=TIME(HOUR(A1),MINUTE(A1),SECOND(A1))

If this post helps click Yes
---------------
Jacob Skaria


"MaryPat" wrote:

I ran a report and then imported the dates and times into a new spreadsheet
and they went into 1 column. I did a copy and paste so that I had 2 colums
and then formatted 1 of them into date and 1 of them into time. However, when
you click on any cell, it still shows both the date and the time and so I am
not able to sort by either one.

Can anyone tell me if there is a way to do what I want to do?



All times are GMT +1. The time now is 10:48 PM.

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