SOLVED

Excel wiill not treat the entry 11-11-11 as a text entry. It keeps treating it like a date.

%3CLINGO-SUB%20id%3D%22lingo-sub-2226552%22%20slang%3D%22en-US%22%3EExcel%20wiill%20not%20treat%20the%20entry%2011-11-11%20as%20a%20text%20entry.%20It%20keeps%20treating%20it%20like%20a%20date.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2226552%22%20slang%3D%22en-US%22%3E%3CP%3EI%20wish%20to%20add%20the%20entry%2011-11-11%20as%20a%20title%20for%20a%20movie.%26nbsp%3B%26nbsp%3B%20I%20then%20wish%20to%20be%20able%20to%20enter%20this%20in%20Excel%20without%20it%20being%20changed%20to%20a%20date%20or%20treated%20as%20a%20number.%26nbsp%3B%20And%20then%20be%20able%20to%20sort%20this%20without%20Excel%20telling%20me%20that%20it%20is%20a%20number%20or%20a%20date%20and%20will%20be%20sorted%20differently.%26nbsp%3B%20How%20can%20I%20do%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20Office%202016.%26nbsp%3B%20Windows%2010.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2226552%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I wish to add the entry 11-11-11 as a title for a movie.   I then wish to be able to enter this in Excel without it being changed to a date or treated as a number.  And then be able to sort this without Excel telling me that it is a number or a date and will be sorted differently.  How can I do this?

 

I am using Office 2016.  Windows 10.

4 Replies

@hankone 

Either format the cell as Text before entering the value, or prefix the value with an apostrophe.

When you enter '11-11-11, the apostrophe tells Excel to treat the value as text. The apostrophe will be displayed in the formula bar, but not in the cell itself.

The reply solves half my problem. But the entries have the little green triangle in the upper left corner.

When I try to sort the data containing 11-11-11, I get the Sort warning that I have some numbers stored as text. Since I do not have any numbers stored as text (11-11-11 is not a number), I do not need this warning and shouldn't get it.

If I put 0 11-11-11 in the cell, Excel recognizes this as not a number and lets me sort it without the Sort warning.

How to I get Excel to recognize that 11-11-11 is not a number when I do a Sort containing this in the cell?

@hankone 

I find those green error triangles irritating. I have turned them off by clearing all the check boxes in the Error Checking section of File > Options > Formulas.

 

A date is a number in Excel, and Excel recognizes 11-11-11 as a possible date, hence the warning.

best response confirmed by hankone (New Contributor)
Solution
I have found an answer to my specific problem.

I place 11-11-11 in a cell
I format the cell as a Number then Custom then as Type 11-11-11.
This permits 11-11-11 to be shown without the green triangle and more importantly allows the column this cell is in to be sorted without generating a Sort error.