#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Sorting Date Column

I have a column of (event) dates where the usual entry is a single date,
however, sometimes an event runs over two days so I would need to enter two
dates within a cell - see example below.

01/06/08
01/07/08 - 02/07/08

I've formatted the column as date but the two day events always sort to the
top/bottom of the column depending on the ascending/decending sort. Is it
possible to get the two day cells to sort based on the first date (in the
above example 01/07/08) ?

If this is not possible I guess the only way is to make separate columns for
the start/end date and then sort on the start date column.

Thanks for any advice.

Dave
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Sorting Date Column

Hi,

You need a helper column. With your data laid out like this

Column A
Date
01/06/08
01/07/08 - 02/07/08

If necessary insert and new column to the right and then in B2 enter the
formula
=LEFT(A2,8)*1
Drag this down to the same length as your data then select all of your data
and sort on this new column. The newly inserted column can be hidden if you
want.

Mike


"Dave C" wrote:

I have a column of (event) dates where the usual entry is a single date,
however, sometimes an event runs over two days so I would need to enter two
dates within a cell - see example below.

01/06/08
01/07/08 - 02/07/08

I've formatted the column as date but the two day events always sort to the
top/bottom of the column depending on the ascending/decending sort. Is it
possible to get the two day cells to sort based on the first date (in the
above example 01/07/08) ?

If this is not possible I guess the only way is to make separate columns for
the start/end date and then sort on the start date column.

Thanks for any advice.

Dave

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting a date by month, date and then year. drosh Excel Discussion (Misc queries) 3 May 30th 08 01:57 AM
column not sorting correctly by date Joe Excel Discussion (Misc queries) 4 April 21st 08 12:15 AM
SORTING A COLUMN BY DATE Todd Excel Discussion (Misc queries) 6 March 31st 08 01:25 AM
Sorting a Pivot Table Column that is not the first column... [email protected] Excel Worksheet Functions 1 October 10th 07 09:02 PM
Right column doesn't change when sorting left column. nohope Excel Discussion (Misc queries) 2 July 19th 05 03:27 PM


All times are GMT +1. The time now is 02:19 PM.

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

About Us

"It's about Microsoft Excel"