Sorting by Date

Redsand

New Member
Joined
Jan 10, 2004
Messages
4
:rolleyes:
Hi,

I am trying to sort by date, but I want to drop the year out of the format and just have the dd/mm without the yy. I know I can format the cells that way but when I sort it It still sorts it as if the year was a factor. ie
12-Mar
14-Jan
02-Mar
Like the year is there just not visible. As there anyway to just to a true sort without the year as a factor???
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
The only way I know is to create an extra column where you take the day and month and format as text

eg:
cell is 01/28/04
put formula in as follows:
=TEXT(MONTH(A1),"mm")&TEXT(DAY(A1),"dd")

Then sort on that new column
 
Upvote 0
add a column as follows:

=text(a1,"DDMM")

& sort on that; alternatively, under the sort options, you can specify months as the first key sort order, which might give you what you want.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top