On 25 Feb 2022, at 22:41, Nathan McCorkle wrote:
Is that because my numbers are calculated (based on a formula), or Excel is
making that choice to actually store any number, when the characters are
entered and I press "Enter"? It is just deciding that numbers store more
compactly in native format? Versus if I type a column with some sort of
names, it knows it cannot be stored in numeric type, but rather
ASCII/UTF/UNICODE?
Numbers are numbers, text is text. Excel lets some numbers be formatted as text for display purposes but they are still numbers. When working in Excel you won't really notice the difference but in Python there is a big difference between "1234" and 1234. As with dates and times, you have lots of options when displaying them.
There is one situation in Excel where you may need to store numbers as strings and that is when they're more than 15 digits long, such as credit card numbers. Excel only has 15-digit precision and rounds every number with more. :-( In such cases you must convert the numbers to text before you store them in Excel and from text in Python if you want to do any processing.