I am met with very strange things with spreadsheets in Excel now. Some cells with a date like 2023-10-22
can not be sorted with other cells in the same format in a column. I changed the format of the cells to General
or Text
, but neither works. The strangest thing is, when I copied other cells that can be sorted to the cells not sorted, if I do not modify the cell date, then it works. But if I modify the cell date, then it can not be sorted.
I have checked the content of the cell by copying and pasting it by value, which showed 45221
. It seems that the value of the cell is not correct. The sample of the spreadsheet can be accessed here.
Cells with digits like 45221
can not be sorted. If I enter dates like 2023-10-22
manually in column B, it still can not be sorted and the paste-by-value shows 45221
. The display of column B is set to General
.
After changing fx in cells of column B to the format like ="2023-06-03"
, paste-by-value shows the correct date format and can be sorted.
44858
which is the number of days since1/1/1900
. In any event, you may have a mix of "real dates" and text strings that are not real dates to explain your issue. If you want more assistance, you will need to provide sufficient data so that your problem can be reproduced.2023-10-22
. The strangest thing is that even if I deleted the cell and recreated a new one, it is still the same. The spreadsheet is generated by c# program. I think that causes the problem.General
? Do they all look the same or are some numbers and others look like dates? What are your windows regional settings? Are you using a Mac or a PC? Screenshots may be useful.