可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
This is the most ridiculous thing, but I'm having trouble sorting by date in excel. I have a column of dates that I put in for something, in the following format
14/6/2012 15/12/2012 16/2/2012 17/9/2012 17/10/2012 17/11/2012
And so on like that. However when I try and sort them, it only sorts based on the first number, as I've shown above. When I highlight the data, at the top of window in excel, it doesn't say general anymore it says date so I assume excel knows that they're dates. However if I go to sort and filter to try and choose a few different levels to sort on, when I try to sort by the date it says sort A to Z, which seems odd. Then when I copied and pasted the date column to a new worksheet to play around with it to try and figure out what was wrong, several of the entries turned into hashes, just ######, but only a handful of entries did that and all of them are grouped together.
Does anyone know what could be wrong? This is literally driving me insane, it should be the simplest thing.
回答1:
The hashes are just because your column width is not enough to display the "number".
About the sorting, you should review how you system region and language is configured. For the US region, Excel date input should be "5/17/2012" not "17/05/2012" (this 17-may-12).
Regards
回答2:
- Select the whole column
- Right click -> Format cells... -> Number -> Category: Date -> OK
- Data -> Text to Columns -> select Delimited -> Next -> in your case selection of Delimiters doesn't matter -> Next -> select Date: DMY -> Finish
Now you should be able to sort by this column either Oldest to Newest or Newest to Oldest
回答3:
Here are the steps to convert the entire column to date
format values.
Add a column to the right of the date column. Right click the new column and select Format
. Set the format to date
.
Highlight the entire old date column and copy it. Highlight the top cell of the new column and select Paste Special
, and only paste values
.
You can then remove the old column.
回答4:
If you dont want to format a separate column with you normal dates pasted to it -- do the following -- add a column to the extreme left of your data and reverve your date ie if the date you had already entered was for example 11.5.16 enter int he new lefthand column 160511 ( notice that there are numbers only and no full stops . When you now sort there will be no mix ups as you have encountered.i have used this method for over 30 years and it never lets me down. And as you have placed the date by year, month and day you neednt include that column if you want or need tu print out your complete list.