ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I sort nulls within date field in Excel (https://www.excelbanter.com/excel-programming/328146-how-do-i-sort-nulls-within-date-field-excel.html)

Petra[_2_]

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.

Dave Peterson[_5_]

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

David

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.



All times are GMT +1. The time now is 05:43 PM.

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