A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sorting by Date and Time



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2004, 03:22 AM
plumstone
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

I transformed some data to an excel file. I tried to sort those data by date and time, however it didn’t work. I also tried to change the format of the date to like “mar 2 98” or “03/02/98”, but the appearance is always “3/2/98”. It just refuse to change the format. It would be appreciated if anybody could help with this.
  #2  
Old June 14th, 2004, 03:27 AM
JulieD
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data by

date and time, however it didn't work. I also tried to change the format of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated if
anybody could help with this.


  #3  
Old June 14th, 2004, 03:57 AM
plumstone
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

It is just the same of the natural appearance of the cell: "5/7/04" in the sample area.
If I type some new data in that cell like:"05/07/04", then in the sample area it shows 38110. And the date is going to return to normal and I can sort them by date and time or change to any format I want.
But I do not want to retype all of those date and time and I want to sort them in date, while it refuseds to be either changed in format nor sorted by date and time.

"JulieD" wrote:

Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data by

date and time, however it didn't work. I also tried to change the format of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated if
anybody could help with this.



  #4  
Old June 14th, 2004, 03:59 AM
plumstone
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

"5/7/04"

"JulieD" wrote:

Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data by

date and time, however it didn't work. I also tried to change the format of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated if
anybody could help with this.



  #5  
Old June 14th, 2004, 04:11 AM
JulieD
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

Hi

bad news - you need to change the format of all the cells
good news - you don't need to retype them

to sort or do anything with dates Excel needs to recognise them as dates (ie
like th 38110 one) ... somehow or other your dates have been entered as
"text" and this is why you can't do anything with them.

to change it, type the number 1 into a blank cell (that's not formatted as
text - ie it should go right aligned after you press enter)
copy it
select all the "date" cells that you need to change the format on (if they
are all consecutive, click on the first, hold down your shift key and click
on the last cell in the range - if they're not consecutive, click on the
first, hold down your ctrl key and then click on each cell you want to
include keeping the ctrl key down) ... once you have all your cells let the
shift or ctrl key go
choose EDIT / PASTE SPECIAL from the menu
choose MULTIPLY
click on the Ok button
-the cells should all go like 38110
now keep the cells selected, choose FORMAT / CELL from the menu
choose
Date (under the number tab) and select whatever format you want
Click OK
and it should now be "fixed"

let us know how you get on

Cheers
JulieD


"plumstone" wrote in message
...
It is just the same of the natural appearance of the cell: "5/7/04" in the

sample area.
If I type some new data in that cell like:"05/07/04", then in the sample

area it shows 38110. And the date is going to return to normal and I can
sort them by date and time or change to any format I want.
But I do not want to retype all of those date and time and I want to sort

them in date, while it refuseds to be either changed in format nor sorted by
date and time.

"JulieD" wrote:

Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the

word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data

by
date and time, however it didn't work. I also tried to change the format

of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated

if
anybody could help with this.





  #6  
Old June 14th, 2004, 04:16 AM
Max
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

Perhaps try Data Text to columns on the column with the "dates"?

Suppose these are all in col A, A1 down

Select column A

Click Data Text to columns

Click Next Next to get to step 3 of the wizard

Under Column data format:
Check the button for "Date"
(the drop arrow should show "DMY"
- this is what your data looks to be like)

Click Finish

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik atyahoodotcom
----
"plumstone" wrote in message
...
It is just the same of the natural appearance of the cell: "5/7/04" in the

sample area.
If I type some new data in that cell like:"05/07/04", then in the sample

area it shows 38110. And the date is going to return to normal and I can
sort them by date and time or change to any format I want.
But I do not want to retype all of those date and time and I want to sort

them in date, while it refuseds to be either changed in format nor sorted by
date and time.

"JulieD" wrote:

Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the

word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data

by
date and time, however it didn't work. I also tried to change the format

of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated

if
anybody could help with this.





  #7  
Old June 14th, 2004, 04:24 AM
JulieD
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

much better solution than mine!

"Max" wrote in message
...
Perhaps try Data Text to columns on the column with the "dates"?

Suppose these are all in col A, A1 down

Select column A

Click Data Text to columns

Click Next Next to get to step 3 of the wizard

Under Column data format:
Check the button for "Date"
(the drop arrow should show "DMY"
- this is what your data looks to be like)

Click Finish

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik atyahoodotcom
----
"plumstone" wrote in message
...
It is just the same of the natural appearance of the cell: "5/7/04" in

the
sample area.
If I type some new data in that cell like:"05/07/04", then in the sample

area it shows 38110. And the date is going to return to normal and I can
sort them by date and time or change to any format I want.
But I do not want to retype all of those date and time and I want to

sort
them in date, while it refuseds to be either changed in format nor sorted

by
date and time.

"JulieD" wrote:

Hi

when you right mouse click on one of the cells, go into format / cells

&
choose the number tab, click on general ... what does it say under the

word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data

by
date and time, however it didn't work. I also tried to change the

format
of
the date to like "mar 2 98" or "03/02/98", but the appearance is

always
"3/2/98". It just refuse to change the format. It would be appreciated

if
anybody could help with this.







  #8  
Old June 14th, 2004, 04:31 AM
Debra Dalgleish
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

There are several ways to convert text numbers/dates to real numbers/dates:

http://www.contextures.com/xlDataEntry03.html

plumstone wrote:
It is just the same of the natural appearance of the cell: "5/7/04" in the sample area.
If I type some new data in that cell like:"05/07/04", then in the sample area it shows 38110. And the date is going to return to normal and I can sort them by date and time or change to any format I want.
But I do not want to retype all of those date and time and I want to sort them in date, while it refuseds to be either changed in format nor sorted by date and time.

"JulieD" wrote:


Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...

I transformed some data to an excel file. I tried to sort those data by


date and time, however it didn't work. I also tried to change the format of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated if
anybody could help with this.






--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #9  
Old June 14th, 2004, 04:39 AM
plumstone
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

Hi JulieD,
Thanks a lot. It is going to save me a lot of my time in the next few weeks.
I just signed in tonight and this is my first question. And I am so glad to get your prompt help.
Plumstone

"JulieD" wrote:

Hi

bad news - you need to change the format of all the cells
good news - you don't need to retype them

to sort or do anything with dates Excel needs to recognise them as dates (ie
like th 38110 one) ... somehow or other your dates have been entered as
"text" and this is why you can't do anything with them.

to change it, type the number 1 into a blank cell (that's not formatted as
text - ie it should go right aligned after you press enter)
copy it
select all the "date" cells that you need to change the format on (if they
are all consecutive, click on the first, hold down your shift key and click
on the last cell in the range - if they're not consecutive, click on the
first, hold down your ctrl key and then click on each cell you want to
include keeping the ctrl key down) ... once you have all your cells let the
shift or ctrl key go
choose EDIT / PASTE SPECIAL from the menu
choose MULTIPLY
click on the Ok button
-the cells should all go like 38110
now keep the cells selected, choose FORMAT / CELL from the menu
choose
Date (under the number tab) and select whatever format you want
Click OK
and it should now be "fixed"

let us know how you get on

Cheers
JulieD


"plumstone" wrote in message
...
It is just the same of the natural appearance of the cell: "5/7/04" in the

sample area.
If I type some new data in that cell like:"05/07/04", then in the sample

area it shows 38110. And the date is going to return to normal and I can
sort them by date and time or change to any format I want.
But I do not want to retype all of those date and time and I want to sort

them in date, while it refuseds to be either changed in format nor sorted by
date and time.

"JulieD" wrote:

Hi

when you right mouse click on one of the cells, go into format / cells &
choose the number tab, click on general ... what does it say under the

word
sample on the right hand side?

Cheers
JulieD

"plumstone" wrote in message
...
I transformed some data to an excel file. I tried to sort those data

by
date and time, however it didn't work. I also tried to change the format

of
the date to like "mar 2 98" or "03/02/98", but the appearance is always
"3/2/98". It just refuse to change the format. It would be appreciated

if
anybody could help with this.






  #10  
Old June 14th, 2004, 04:41 AM
Max
external usenet poster
 
Posts: n/a
Default Sorting by Date and Time

um .. not really ..
imho, any solution that works is good g
... but thanks for the feedback, JulieD !

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik atyahoodotcom
----
"JulieD" wrote in message
...
much better solution than mine!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.