A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sort dates dd.mm.yy by year



 
 
Thread Tools Display Modes
  #1  
Old January 27th, 2004, 04:36 PM
aboiy
external usenet poster
 
Posts: n/a
Default Sort dates dd.mm.yy by year


Hi Hayley,

Try also this tips i got from the groups before;

You'll need a helper column. with your dates in column A
put the formula in column B, C, D.
A B C D
01.06.95 =day(A1) =month(A1) =year(A1)
02.06.03
15.06.01
05.06.02

Highlight "B1", "C1", "D1", you'll see a fill handle
appear in lower right corner of D1, drag it to copy down
the formula.

Then start sorting starting from column D, then by C & D.

Hope that helps.

aboiy



-----Original Message-----
Hi there

I am trying to sort a set of dates by year. The format is

for example:
01.06.95
02.06.03
15.06.01
05.06.02

When I sort it sorts them by the first day of the month

but I want it
to sort by year first. I can't see a way round this at

the moment. Any
ideas would be appreciated.

Many thanks

Hayley


---
Message posted from http://www.ExcelForum.com/

.

  #2  
Old January 27th, 2004, 05:06 PM
aboiy
external usenet poster
 
Posts: n/a
Default Sort dates dd.mm.yy by year



sorry, includes column A in highlighting the columns.


aboiy
  #3  
Old January 27th, 2004, 05:12 PM
aboiy
external usenet poster
 
Posts: n/a
Default Sort dates dd.mm.yy by year


Hi Hayley,

I mean to include column A in sorting but not in copying
formula.

aboiy
  #4  
Old January 28th, 2004, 12:28 AM
2rrs
external usenet poster
 
Posts: n/a
Default Sort dates dd.mm.yy by year

hayley wrote in message ...
Hi there

I am trying to sort a set of dates by year. The format is for example:
01.06.95
02.06.03
15.06.01
05.06.02

When I sort it sorts them by the first day of the month but I want it
to sort by year first. I can't see a way round this at the moment. Any
ideas would be appreciated.

Many thanks

Hayley


Try this: =TEXT(A1,"yyyymmdd")which sorts by year, month and day.




---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.