[Solved] Unable to change date format after CSV import

Discuss the spreadsheet application
Post Reply
Howardofski
Posts: 36
Joined: Thu Nov 18, 2021 5:52 pm

[Solved] Unable to change date format after CSV import

Post by Howardofski »

I am attaching a spreadsheet. Column A (showing dates) was copied and pasted from a downloaded CVS file. I find that I cannot change the date formatting. In B1 I have typed a copy of A1 and I find that I can change the date format for that cell, but not the original.

All the downloaded data in column A cannot be re-formatted.

Thanks for any clues
LOCKED FORMAT.ods
(9.76 KiB) Downloaded 92 times
 Edit: Changed subject, was Date Format Mystery 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Last edited by MrProgrammer on Sat Nov 11, 2023 7:39 pm, edited 2 times in total.
Reason: Edited topic's subject
Open Office 4.1.11 Windows 10
User avatar
RoryOF
Moderator
Posts: 35267
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Date Format Mystery

Post by RoryOF »

Turn on /View /Value highlighting; that tells that Column A values are all text, B1 entry is a number (a date).

Text shows as Black, numbers as Blue, formulae as Green
Apache OpenOffice 4.1.16 on Xubuntu 26.04.1 LTS
FJCC
Moderator
Posts: 9651
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Date Format Mystery

Post by FJCC »

You can convert column A to numeric dates by doing the following:
Select all of the filled cells in column A and set their format code to YYYY-MM-DD using the menu Format -> Cells
With the cells still selected, choose the menu Data -> Text to Columns
Set the Separator to Tab and click OK. That will reenter all the selected cells.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Howardofski
Posts: 36
Joined: Thu Nov 18, 2021 5:52 pm

Re: (SOLVED) Date Format Mystery

Post by Howardofski »

Thanks much RoryOF & FJCC
Open Office 4.1.11 Windows 10
Post Reply