Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How do I sort nulls within date field in Excel

When I attept to sort a date column, either ascending or descending, the
dates always sort at the top. Is there code or a way to sort to produce a
result that the nulls (blank dates) within the column will appear at the top
of the column and the dates will folow in ascending order below the nulls?

Any help is greatly appreciated.
thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default How do I sort nulls within date field in Excel

Maybe you could just sort, then move them where you want.

Or fill the empty cells with 0's.
sort your dates/0's
replace all the 0's with nothing (Match entire cell contents, though)

Petra wrote:

When I attept to sort a date column, either ascending or descending, the
dates always sort at the top. Is there code or a way to sort to produce a
result that the nulls (blank dates) within the column will appear at the top
of the column and the dates will folow in ascending order below the nulls?

Any help is greatly appreciated.
thank you.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default How do I sort nulls within date field in Excel

Hi,
I do not have a complete answer, but I belive it can be done with "lists",
where a list is created and used as the sort order. Maybe one of the MVPs can
help further, but that was as close as I could get. You might try help and
"lists" to see if you can define the sort in a better way.
Thanks,

"Petra" wrote:

When I attept to sort a date column, either ascending or descending, the
dates always sort at the top. Is there code or a way to sort to produce a
result that the nulls (blank dates) within the column will appear at the top
of the column and the dates will folow in ascending order below the nulls?

Any help is greatly appreciated.
thank you.

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
How do I sort a column in Excel by the last digit in each field jmdyt Excel Discussion (Misc queries) 1 April 24th 07 03:31 AM
how do i sort formated (colour) field in excel? Eric Excel Discussion (Misc queries) 0 March 28th 07 02:17 AM
how do i sort formated (colour) field in excel? fak119 Excel Discussion (Misc queries) 0 March 28th 07 02:09 AM
How to Join/concatenate a date field with a time field in Excel? Alan Excel Discussion (Misc queries) 4 August 9th 05 10:07 PM
Using Excel, how do I replace cells containing blanks with nulls? Nither1 Excel Discussion (Misc queries) 2 May 9th 05 10:32 PM


All times are GMT +1. The time now is 02:59 AM.

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"