Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2008

Tip: Looking for answers? Try searching our database.

sort not working properly ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry - 21 Apr 2008 15:49 GMT
Is there a way to get the list below to sort in time sequence?
Notice that the morning times are after the PM times on Friday.
You are looking at 3 columns here. date, hyphen and time.
Time column is formatted as time. Sort is in ascending order,
what is wrong here?
4-24-Thu    -    7:30 PM
4-25-Fri    -    6:00 PM
4-25-Fri    -    8:00 PM
4-25-Fri    -    8:00 PM
4-25-Fri    -    8:00 PM
4-25-Fri    -    8:00 PM
4-25-Fri    -     9:00 AM
4-25-Fri    -     10:30 AM
4-25-Fri    -     12:00 PM
4-26-Sat    -    11:00 AM
Buzz Local#30 - 21 Apr 2008 15:58 GMT
Try place the sort in the time colum instaead of date colum? maybe I am not
sure though
> Is there a way to get the list below to sort in time sequence?
> Notice that the morning times are after the PM times on Friday.
[quoted text clipped - 11 lines]
> 4-25-Fri - 12:00 PM
> 4-26-Sat - 11:00 AM
Dave - 21 Apr 2008 16:36 GMT
Hi Larry,
Perhaps the time column is not formatted as time. It seems to be sorting as
text.
Check the format used in that column.
Regards - Dave.
Niek Otten - 21 Apr 2008 17:08 GMT
You can check the format, but that doesn't tell you if it is text.
The ISTEXT() function will.
You can convert to real Excel time with the TIMEVALUE() function.
Use the date as first sort key and the time as second.

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi Larry,
| Perhaps the time column is not formatted as time. It seems to be sorting as
| text.
| Check the format used in that column.
| Regards - Dave.
Tyro - 22 Apr 2008 02:43 GMT
The sort is working properly. Sorting ascending: 4-25-Fri - 8:00 PM preceds
4-25-Fri - 9:00 AM as 8 preceds 9 in an ascending sort. In your case, you
seem to have text, not Excel date/time values. The sort is done by
evaluating the contents from left to right. If you have true Excel
date/times, and you sort, then format as date/times, the results will be in
the sequence you want with AM preceding PM. You're confusing formatting of
cells with the contents of cells.

Tyro

> Is there a way to get the list below to sort in time sequence?
> Notice that the morning times are after the PM times on Friday.
[quoted text clipped - 11 lines]
> 4-25-Fri - 12:00 PM
> 4-26-Sat - 11:00 AM
Larry - 22 Apr 2008 13:02 GMT
Thanks, Turns out the ones that were not sorting properly were text!
Thanks again

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.