DATE column sorts as text
-
THEBookMan
- Posts: 122
- Joined: Wed Sep 30, 2015 10:03 pm
- Location: Houston, TX area
DATE column sorts as text
120000 rows, 2 coulmns (ADDRESS, DATE SENT)
ADDRESS column is formatted as TEXT
DATE SENT column is formatted as DATE (D, MMM,YYYY]
----
Highlight cols "A" & "B",
SORT on "A"(ADDRESS) works great !
SORT on "B"(Date Sent) are sorted as if they were all text, not dates.
Thank you,
⌡im [THE BookMAn]
ADDRESS column is formatted as TEXT
DATE SENT column is formatted as DATE (D, MMM,YYYY]
----
Highlight cols "A" & "B",
SORT on "A"(ADDRESS) works great !
SORT on "B"(Date Sent) are sorted as if they were all text, not dates.
Thank you,
⌡im [THE BookMAn]
Last edited by MrProgrammer on Thu Jul 24, 2025 5:04 pm, edited 1 time in total.
Reason: Edited topic's subject
Reason: Edited topic's subject
Open Office 4.1.3 Win 10
Re: DATE column sorts
Select the date column, click Data, Text to Columns, Separated by, uncheck all separators, click the column, select column type Date (DMY), Ok.
AOO 4.1.16 & LO 25.8.3 on Windows 10
-
THEBookMan
- Posts: 122
- Joined: Wed Sep 30, 2015 10:03 pm
- Location: Houston, TX area
Re: DATE column sorts
Excellent info, but tried 2X still the same sorting.
Thanks, ⌡im [THE BookMan]
Thanks, ⌡im [THE BookMan]
Open Office 4.1.3 Win 10
- Hagar Delest
- Moderator
- Posts: 33693
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: DATE column sorts
Can you upload a sample file with a few rows so that we see how it looks like?
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
Re: DATE column sorts
If your "dates" sort as texts, they are texts.
Use ISO 8601 format "YYYY-MM-DD" and sorting will be correct whether all the dates are texts or all the dates are (formatted) numbers.
See attached example.
Use ISO 8601 format "YYYY-MM-DD" and sorting will be correct whether all the dates are texts or all the dates are (formatted) numbers.
See attached example.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
-
THEBookMan
- Posts: 122
- Joined: Wed Sep 30, 2015 10:03 pm
- Location: Houston, TX area
Re: DATE column sorts
DUP? Address sent
- xmyryxn@clamsnet.org 11. Feb. 2025
- xmys@kershawcountylibrary.org 11. Feb. 2025
- xmysxunders970@gmail.com 11. Feb. 2025
- xmysb##kcxse@yahoo.com 11. Feb. 2025
- xmysc#ttd#uglxss@yahoo.com 11. Feb. 2025
- xmys#ule@aol.com 11. Feb. 2025
- xmyterlxxk@gmail.com 11. Feb. 2025
- xmyurmxn@nosywilma.com 11. Feb. 2025
- xmyvintxgejunque@gmail.com 11. Feb. 2025
- xmzc#n@aol.com 11. Feb. 2025
- xn_librxrixn@mymcpl.org 11. Feb. 2025
- xnx.krxhmer@unt.edu 11. Feb. 2025
- xnx@paws2carecoalition.org 11. Feb. 2025
- xnx@thevintageshack.net 11. Feb. 2025
- xnxbelressner@gmail.com 11. Feb. 2025
- xnxcke@unm.edu 11. Feb. 2025
- xnxc#stixlibrxry@dc.gov 11. Feb. 2025
- xnxdutt#n@yahoo.com 11. Feb. 2025
- xnxelisxxrr@gmail.com 11. Feb. 2025
- xnxh#83@yahoo.com 11. Feb. 2025
- xnxinmixmi@hotmail.com 11. Feb. 2025
- xnxir@mainstreet.org 11. Feb. 2025
- xnxj#nss#n@gmail.com 11. Feb. 2025
- xnxkrin#1711@yahoo.com 11. Feb. 2025
- xnxli.perry@asu.edu 11. Feb. 2025
- xnxlytics@sfpl.org 11. Feb. 2025
- xnxmxnj#e14@gmail.com 11. Feb. 2025
- xnxmxree@yeoldbooks.com 11. Feb. 2025
- xnxmxrix@lacaze.org 11. Feb. 2025
- xnxmcl#cks@gmail.com 11. Feb. 2025
- xnxneyx.hxrdmxn@ufl.edu 11. Feb. 2025
- xnxnhxrm#ndxr@gmail.com 11. Feb. 2025
- xnxr#dz@illinois.edu 11. Feb. 2025
- xnxssxfehxvenrescue@gmail.com 11. Feb. 2025
- xnxstxcixsxntiques@gmail.com 11. Feb. 2025
- xnxstxsix.weigle@gmail.com 11. Feb. 2025
- xnxstxsixb##ks@bellsouth.net 11. Feb. 2025
- xnxstxsiyxk@detroithistorical.org 11. Feb. 2025
- xnxstxzixgenevx@gmail.com 11. Feb. 2025
- xnxthxn@pobox.com 11. Feb. 2025
- xnxtum2000@aol.com 11. Feb. 2025
- xnxuskx@alaskanative.net 11. Feb. 2025
- xnbmcvey@comcast.net 11. Feb. 2025
- xnbr##ks@nbnet.nb.ca 11. Feb. 2025
- xncest#r@fhsnl.ca 11. Feb. 2025
- xncest#r1780@gmail.com 11. Feb. 2025
- xncest#rxrchivist@gmail.com 11. Feb. 2025
- xncest#rb#nes@yahoo.com 11. Feb. 2025
- xncest#rc#nnect@outlook.com 11. Feb. 2025
- xncest#rc#nnecti#ns@gmail.com 11. Feb. 2025
[Addresses munged to maintain privacy for address owners - robleyd, mod]
- xmyryxn@clamsnet.org 11. Feb. 2025
- xmys@kershawcountylibrary.org 11. Feb. 2025
- xmysxunders970@gmail.com 11. Feb. 2025
- xmysb##kcxse@yahoo.com 11. Feb. 2025
- xmysc#ttd#uglxss@yahoo.com 11. Feb. 2025
- xmys#ule@aol.com 11. Feb. 2025
- xmyterlxxk@gmail.com 11. Feb. 2025
- xmyurmxn@nosywilma.com 11. Feb. 2025
- xmyvintxgejunque@gmail.com 11. Feb. 2025
- xmzc#n@aol.com 11. Feb. 2025
- xn_librxrixn@mymcpl.org 11. Feb. 2025
- xnx.krxhmer@unt.edu 11. Feb. 2025
- xnx@paws2carecoalition.org 11. Feb. 2025
- xnx@thevintageshack.net 11. Feb. 2025
- xnxbelressner@gmail.com 11. Feb. 2025
- xnxcke@unm.edu 11. Feb. 2025
- xnxc#stixlibrxry@dc.gov 11. Feb. 2025
- xnxdutt#n@yahoo.com 11. Feb. 2025
- xnxelisxxrr@gmail.com 11. Feb. 2025
- xnxh#83@yahoo.com 11. Feb. 2025
- xnxinmixmi@hotmail.com 11. Feb. 2025
- xnxir@mainstreet.org 11. Feb. 2025
- xnxj#nss#n@gmail.com 11. Feb. 2025
- xnxkrin#1711@yahoo.com 11. Feb. 2025
- xnxli.perry@asu.edu 11. Feb. 2025
- xnxlytics@sfpl.org 11. Feb. 2025
- xnxmxnj#e14@gmail.com 11. Feb. 2025
- xnxmxree@yeoldbooks.com 11. Feb. 2025
- xnxmxrix@lacaze.org 11. Feb. 2025
- xnxmcl#cks@gmail.com 11. Feb. 2025
- xnxneyx.hxrdmxn@ufl.edu 11. Feb. 2025
- xnxnhxrm#ndxr@gmail.com 11. Feb. 2025
- xnxr#dz@illinois.edu 11. Feb. 2025
- xnxssxfehxvenrescue@gmail.com 11. Feb. 2025
- xnxstxcixsxntiques@gmail.com 11. Feb. 2025
- xnxstxsix.weigle@gmail.com 11. Feb. 2025
- xnxstxsixb##ks@bellsouth.net 11. Feb. 2025
- xnxstxsiyxk@detroithistorical.org 11. Feb. 2025
- xnxstxzixgenevx@gmail.com 11. Feb. 2025
- xnxthxn@pobox.com 11. Feb. 2025
- xnxtum2000@aol.com 11. Feb. 2025
- xnxuskx@alaskanative.net 11. Feb. 2025
- xnbmcvey@comcast.net 11. Feb. 2025
- xnbr##ks@nbnet.nb.ca 11. Feb. 2025
- xncest#r@fhsnl.ca 11. Feb. 2025
- xncest#r1780@gmail.com 11. Feb. 2025
- xncest#rxrchivist@gmail.com 11. Feb. 2025
- xncest#rb#nes@yahoo.com 11. Feb. 2025
- xncest#rc#nnect@outlook.com 11. Feb. 2025
- xncest#rc#nnecti#ns@gmail.com 11. Feb. 2025
[Addresses munged to maintain privacy for address owners - robleyd, mod]
Open Office 4.1.3 Win 10
Re: DATE column sorts
What do you expect now?
If you don't attach your example file, we can't even check what type of data your second column actually contains?
What shall we do with about 60 times the same date?
If the contained email addresses are not just artificial examples, you should SOON edit your post an remove that personal information!
If you don't attach your example file, we can't even check what type of data your second column actually contains?
What shall we do with about 60 times the same date?
If the contained email addresses are not just artificial examples, you should SOON edit your post an remove that personal information!
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: DATE column sorts
Use View | Value Highlighting to show what type of information is in your spreadsheet; text cells are formatted in black, formulae in green, and number cells in blue, no matter how their display is formatted.
Slackware 15 (current) 64 bit
Apache OpenOffice.1.16
LibreOffice 26.8.0.3; SlackBuild for 26.8.0 by Eric Hameleers
-----------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Apache OpenOffice.1.16
LibreOffice 26.8.0.3; SlackBuild for 26.8.0 by Eric Hameleers
-----------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
-
THEBookMan
- Posts: 122
- Joined: Wed Sep 30, 2015 10:03 pm
- Location: Houston, TX area
Re: DATE column sorts
Sorry for the data reply ....
"SENT column is all numbers
Here is an abbreviated ODS:
"SENT column is all numbers
Here is an abbreviated ODS:
| Edit: Bookman, it is disrespectful to publicly post 6000 personal email addresses. I have replaced them with random data. I made no changes to column C, which contains your text dates. Please never post confidential personal information in the forum. This is your second indiscretion in this topic. I am confident that the solution provided yesterday by Alex1 will work if you perform the steps correctly. -- MrProgrammer, forum moderator, 2025-07-24 14:35 UTC |
Open Office 4.1.3 Win 10
Re: DATE column sorts
Value highlighting shows all is text, apart from A2.THEBookMan wrote: ↑Thu Jul 24, 2025 2:33 pm Sorry for the data reply ....
"SENT column is all numbers
Here is an abbreviated ODS:
Apache OpenOffice 4.1.16 on Xubuntu 26.04.1 LTS
Re: DATE column sorts
Do NOT use explicit horizontal alignment may be an even better advice. We can get along with an exception for column titles (aligning them right if the contents are numbers, and centered if the contents are mixed).
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
- MrProgrammer
- Moderator
- Posts: 5468
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: DATE column sorts as text
Bookman, a review of your other topics found three (91238, 101898, 102403) which also contained many personal email addesses of other people. This behavior is disrespectful. Real email addresses in a public forum invite spammers to capture them and send the owners SPAM, or invite scammers use them to defraud the email owners, possibly resulting in monetary losses. I have replaced the email addresses in those topics with fake ones, as two moderators did to your posts in this topic. If you post again in this topic, or another topic, and include email addresses which are not obviously fake, the moderation team will have a discussion about banning you.
-- MrProgrammer, forum moderator
-- MrProgrammer, forum moderator
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).