Ascending Date order

Darren Smith

Well-known Member
Joined
Nov 23, 2020
Messages
631
Office Version
  1. 2019
Platform
  1. Windows
When I ascend the date order in the field it loses lots of rows of data does anyone know why this is?
 
Often a work around is to link to or import the records (consider that to be a staging table) then append to a secondary table where the fields are properly typed. Then anything that looks like a date will be properly stored as such. You are correct in that date values can be an issue with some people's regional settings. To convert as you suggest may require code because conversion functions will usually fail if they encounter nulls.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Often a work around is to link to or import the records (consider that to be a staging table) then append to a secondary table where the fields are properly typed. Then anything that looks like a date will be properly stored as such. You are correct in that date values can be an issue with some people's regional settings. To convert as you suggest may require code because conversion functions will usually fail if they encounter nulls.
Yeah, those conversions functions can be a pain with the regional settings and date values where month/days can go either way.
Personally, if it were me, I would probably choose the last option I suggested, and use that calculated field for sorting. It is fairly simple.

I do use the other option you talk about, using Staging tables too, but I have a bunch of VBA code around that to automatically delete the old data, and compact and repair the database to keep it from bloating. It certianly works well, but is a bit more complex solution.
 
Upvote 0
depending on how slow it got you might want to make a query that does nothing but selects the data from the linked table, but also includes a calculated column that makes a date out of the text field
then do all your regular work with the query as a source instead of the linked table

I imagine it will be slow, but you never know till you try it out
 
Upvote 0
Solution

Forum statistics

Threads
1,214,832
Messages
6,121,847
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top