I am generating csv files, and some cells have the format nn:nnnn
, i.e. digits separated by a colon. It's not a time format nor a date format, it's just text cells and I don't want them to be re-formatted at all.
I've added some logic to my code in order to identify if it looks like a legal time format or a date, and if so, I wrap that string like this ="nn:nnnn"
. But I'm not interested in adding those characters to all the cells.
It almost solved my problem, but there are still some cases such as 07:1155
that MS Excel insists to translate it as 1.09375. Other cells such as 68:0062
remain intact. Is there a way to recognize what strings are going to be calculated or translated?
Is there any workaround such as any set-up in MS Excel to tell it not to perform any translation on these kind of text?