News for hackers. Stuff that matters.
Re:Cursed Excel: "1/2"+1=45660 by recursive on Monday April 07, 2025 @01:06PM (#43613634)
Yes, that's the point. But excel just incorrectly determines what you meant, and corrupts your data.
Re:Cursed Excel: "1/2"+1=45660 by ziddoap on Monday April 07, 2025 @01:22PM (#43613800)
>But excel just incorrectly determines what you meant

How would you, if you were programming excel, determine whether the 5-digit number entered with a leading 0 is meant to be a zip code or not?

Re:Cursed Excel: "1/2"+1=45660 by recursive on Monday April 07, 2025 @02:23PM (#43614399)
I would not make any default determination until and unless there was a proactive user action. If there is any value that doesn't round trip through string serialization, don't allow it to be coerced without the user deciding to allow it, explicitly.
Re:Cursed Excel: "1/2"+1=45660 by dreghgh on Monday April 07, 2025 @03:11PM (#43614807)
You know that many users of Excel enter numbers into the cells and then do arithmetic calculations with them right?
Re:Cursed Excel: "1/2"+1=45660 by recursive on Monday April 07, 2025 @04:07PM (#43615401)
No, but I think it's a lot. I'd bet that the vast majority of those round-trip through string serialization, requiring no further user action based on my recommendation.
Re:Cursed Excel: "1/2"+1=45660 by dreghgh on Monday April 07, 2025 @04:26PM (#43615601)
Disagree, the most common way for an experienced user to type a date into Excel is as a partial date if it is this year, eg 4-Apr, which is instantly converted to 04/04/2025 or whatever.

The vast majority of dates I personally type into Excel would be in this form.

Re:Cursed Excel: "1/2"+1=45660 by recursive on Monday April 07, 2025 @05:33PM (#43616189)
Format the column as date. Or turn on the global option for loose type insanity.
Re:Cursed Excel: "1/2"+1=45660 by dreghgh on Tuesday April 08, 2025 @05:49PM (#43626811)
In this thread: people who don't know how to use Excel tell people who do know, how to use it.
Re:Cursed Excel: "1/2"+1=45660 by sosborn on Monday April 07, 2025 @02:15PM (#43614312)
Would keeping the leading zero cause any problems with future calculations?