this post was submitted on 12 Feb 2024
746 points (98.3% liked)

Programmer Humor

32247 readers
523 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 30 comments
sorted by: hot top controversial new old
[–] [email protected] 69 points 8 months ago (1 children)

Fuck you Excel, that’s a date, not $946,684,800

[–] deweydecibel 55 points 8 months ago* (last edited 7 months ago) (2 children)

Honestly, the automatic datetime conversion is the worst part if you're just trying to keep it text. It's idiotic there isn't a simple way to turn off that off. That's not formatting, that's actually changing the data in those cells which may not be what you want.

[–] Identity3000 24 points 8 months ago* (last edited 8 months ago) (1 children)

In case you're not aware, the latest version of Excel absolutely DOES have that setting (mentioned elsewhere here in the comments). While it's wild that it took so long, it's now a solvable problem and everyone should know about it (and upgrade)!

[–] Agent641 14 points 8 months ago

It should be, and should always have been defaulting to the "dont fuck about with my data" setting.

Because there really aren't too many scenarios where I want my barcodes abbreviated to scientific notation.

[–] [email protected] 11 points 8 months ago

It should make me irrationally angry, but no, it's a rational hatred. It burns even more intensely.

[–] [email protected] 44 points 8 months ago* (last edited 8 months ago) (1 children)

I'm not sure what version got this, but there's a setting now where you can disable auto-conversion and it's amazing.

https://mashable.com/article/microsoft-excel-disable-setting-auto-conversion-data-into-dates

[–] [email protected] 18 points 8 months ago (1 children)

Holy crap, that's amazing - I can't believe it would take this long! I presume straight up numbers are no longer affected, too, but I'm almost willing to trust it and try it out...

[–] [email protected] 6 points 8 months ago (1 children)

Yeah it stops converting numbers too. At my job we have a lot of ids that start with 0, and it was super annoying to have '000123' turn into '123', now it keeps it as text.

[–] [email protected] 1 points 8 months ago

That might just be the top tool of the week, then!

[–] [email protected] 30 points 8 months ago

libreoffice reigns supreme

[–] danc4498 30 points 8 months ago (2 children)

CSV files having their leading zeros cut off fuck my entire world up.

[–] [email protected] 1 points 8 months ago

Instead of just opening them with Excel, make a blank workbook or sheet, go to the data tab, import from text/csv. It'll give you a bunch of menus and such where you can adnust how it reads the file and how it will format columns. Any column with leading zeros you want as text. It doesn't fuck with "as text" columns.

The only caveat is that once you've imported the CSV that way, you'll want to open the data sources tab and delete the connection to the csv file, otherwise changes in the original csv file will change shit in your spreadsheet, but only if excel feels like syncing it. Better to shut that off and do it yourself as needed.

[–] [email protected] 1 points 8 months ago

Dealing with phone numbers and people using excel....

[–] [email protected] 23 points 8 months ago

can you imagine a world without excel?

[–] [email protected] 20 points 8 months ago (1 children)

Nice barcode you have there. Be a shame if somebody took any leading zeroes off.

Nice Int64 you have there. Be a shame if somebody rounded it to 14 significant digits.

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

Import from the data tab, force all columns as text formatting. Excel won't fuck with the formatting then.

[–] [email protected] 7 points 8 months ago (1 children)

But treats a random half of your numbers as text

[–] Rookwood 4 points 8 months ago

That's a good thing.

[–] [email protected] 7 points 8 months ago
[–] [email protected] 7 points 8 months ago
[–] ZoopZeZoop 6 points 8 months ago (2 children)
[–] xpinchx 5 points 8 months ago

Unrelated but alt+e+s+v is so ingrained into my muscle memory. I should really get a macro pad

[–] droans 4 points 8 months ago

Ctrl+Shift+V exists now which does the exact same thing.

Actually it's a bit better. Excel always ignores alt codes for the first key press or two after switching windows.

[–] [email protected] 4 points 8 months ago (1 children)

https://www.visidata.org/ > excel for manipulation and navigation of data.

[–] [email protected] 1 points 8 months ago

@expr @Agent641

That actually looks very nice.

#python #datascience

[–] [email protected] 3 points 8 months ago

laughs in pola.rs