English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to sort bt date in an Excel sheet. I have formated my my cells like dd-mm-yyyy

March 03 2005 will be intered as 03-03-2005
April 15 2005 15-04-2005
sept 1 2006 01-09-2006

After an ascending 01-09-2006
sorting i got 03-03-2005
15-04-2005

Data from 2006 should be listed as the last one. My Excel sheet doesn't accept my input as a date number.

Thank you for any help

2006-10-18 06:52:40 · 2 answers · asked by Martin T 2 in Computers & Internet Software

2 answers

Instead of formating the cells, highlight the entire column and format it to your date type. Click on Data -> Sort. Select the column to sort by. Select Ascending or Descending and click OK.

2006-10-18 07:02:44 · answer #1 · answered by gandalf 4 · 0 0

When you input 15-04-2005 does not mean you entered the date April 15 2005 (even if you have changed the format cells)
The values you entered are entered as text (that is why 01 came in before 03)
The format cells you made is applied to what it showing not what entered in cell.

Your date input mask is as setted in :
Control Panel > Regional and Language Settings
There you can change the date input mask.

I prefer you enter the date as you usually do (mm/dd/yyyy or m/d/yy if you are in US)
means input the date "April 15 2005" as 4/15/5, then the format cells will show it as you set it.

Enjoy my profile, I am VBAXLMan

2006-10-21 01:38:42 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers