Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 157
Default Sorting dates, ignoring year

I have a speadsheet of birthdays which I would like to change to be
birthdates. At the moment, everyone's birthdays are specified on one column
in the format dd/mm/2002 so that I can sort the worksheet to keep the dtaes
in order throughout the year.

Is there an easy way to sort a column of dates but ignore the year? Or do I
need to split the dates into multiple columns?

--
Ian
--


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sorting dates, ignoring year

You could split the dates into separate columns:

=month(a1)
=day(a1)
and
=year(a1)
(you wouldn't use the year column)

But I'd insert a helper column with formulas like:

=text(a1,"mmdd")
(and drag down)
And sort the entire range by this column.


IanC wrote:

I have a speadsheet of birthdays which I would like to change to be
birthdates. At the moment, everyone's birthdays are specified on one column
in the format dd/mm/2002 so that I can sort the worksheet to keep the dtaes
in order throughout the year.

Is there an easy way to sort a column of dates but ignore the year? Or do I
need to split the dates into multiple columns?

--
Ian
--


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Sorting dates, ignoring year

Yes, add a helper column which has just the month and day. For example,
their birthday this year would be:
=date(year(today()),month(a1),day(a1))

Now sort on this.

Regards,
Fred

"IanC" wrote in message
...
I have a speadsheet of birthdays which I would like to change to be
birthdates. At the moment, everyone's birthdays are specified on one column
in the format dd/mm/2002 so that I can sort the worksheet to keep the dtaes
in order throughout the year.

Is there an easy way to sort a column of dates but ignore the year? Or do
I need to split the dates into multiple columns?

--
Ian
--



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sorting dates, ignoring year

Hi,

Try this

1. Select the range of dates and press Ctrl+1 (for Format cells). Go to
Number Category Custom Type mmmm
2. The above step will show months instead of dates
3. Now select the range again and go to
Excel 2003 - Data Sort Options First key sort order January,
February, March etc.
Excel 2007 - Data Sort Order Custom List January, February,
March etc.
4. Step 3 will get the dates sorted by month
5. Select the range of months and press Ctrl+1 (for Format cells). Go to
Number Category Custom Type dd/mm/yyyy

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"IanC" wrote in message
...
I have a speadsheet of birthdays which I would like to change to be
birthdates. At the moment, everyone's birthdays are specified on one
column in the format dd/mm/2002 so that I can sort the worksheet to keep
the dtaes in order throughout the year.

Is there an easy way to sort a column of dates but ignore the year? Or do
I need to split the dates into multiple columns?

--
Ian
--


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ignoring punctuation when sorting Dave[_4_] Excel Discussion (Misc queries) 1 September 28th 07 02:28 AM
Sorting by month and year and ignoring the day Charles Excel Discussion (Misc queries) 2 September 14th 07 11:54 PM
Sorting dates by month instead of year MMangen Excel Worksheet Functions 5 December 19th 06 09:08 PM
Ignoring #N/A in sorting? Arsenio Oloroso Excel Discussion (Misc queries) 1 August 31st 06 06:57 PM
How to sort by day and month while ignoring year? Robert Judge Excel Worksheet Functions 4 December 23rd 04 11:37 PM


All times are GMT +1. The time now is 03:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"