Quantcast
Channel: User Dominique - Super User
Viewing all articles
Browse latest Browse all 174

Excel datetime format issue, possibly locale dependent

$
0
0

I'm working on a Belgian Excel 365 workbook. I have just imported a list of dates, looking like this:

dinsdag 5 december 2023 11:55:55dinsdag 5 december 2023 11:55:56dinsdag 5 december 2023 11:55:57

("dinsdag" means Tuesday, the rest is obvious)

Excel does not recognise this as being a datetime, so I though of turning a datetime into that format, and use the description of that format in order to explain Excel what to do.
Unfortunately, this seems not to work: in two other cells, I have typed Ctrl; and modified the time to "12:34:56", and this is what I see:

enter image description here

(Cell formatting is set as [$-x-sysdate]dddd, mmmm dd, jjjj u:mm:ss, where j stands for "jaar" ("year") and u for "uur" ("hour"))

The cell underneath ("E3") has cell formatting u:mm:ss.

In my opinion, this makes no sense: cell "E3" clearly states that cell formatting u:mm:ss shows the time as "12:34:56", so why don't I see the timestamp in cell "E2"? (For your information, I've enlarged the cell but I still did not see the timestamp)

Also, once I have this correct formatting, is there a function, like =DateFromText() I can use, based on the formatting, something like:

=DateFromText(A1, "[$-x-sysdate]dddd, mmmm dd, jjjj u:mm:ss")

Thanks in advance


Viewing all articles
Browse latest Browse all 174

Trending Articles