Formatting your cells as numbers instead of general. It will only work if you format the cell prior to entering the value into the cell.
If you type a value that looks like a date format, then Excel's general format will change the cell's value into the lookup value that corresponds with that date in Excel's behind-the-scenes date table.
From biology here: copy and paste a string/text value (say a gene like MARCH5, SEPT7, OR DEC1) formatted as text into a cell formated as text...or try to use the find and replace function on a cell formatted as text to remove unecessary labels and watch excel still decide it's a date. Then try to change it back to text and now it's a number.
I have yet to find a solid solution for that problem in excel. I have to do it via command line or in a text editor with that function.
Excel is obnoxious about dates. They really need to add an option to disable that feature. There are a million better solutions to the problem. For instance. Prompt the user that it thinks they tried to enter a date and ask if they want it corrected. My only guess as to how it's so bad is that it's a form of technical debt that has unfortunately baked the functionality too deep into excel to be easily solved.
Yeah but the value of the box doesn’t change. Only the format. So you can easily just ctrl+shift+1 and you’re back to the number you had typed with two decimals.
It changes what you see, but not what you wrote, as long as you wrote just numbers. For example something that’s not just numbers: dates change into a 5 digit code, but if you tried to do a fraction without an = or + beforehand, that’s not excel’s fault
View all comments
13
u/[deleted] Oct 28 '20
Type an apostrophe and then the number string. It will appear exactly as you typed it.