Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Using the sort function for a date column where year was not enter

I have a "Birthday" column in a spreadsheet where only the month/day is
entered. When sorting on this column, the month/day is sorted by the year
the date was entered even though no year was entered. There appears to be a
defaulting setting somewhere, but cannot determined where to adjust the
setting so the column is sorted on only month/year regardless of year
entered.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Using the sort function for a date column where year was not enter

Hi,

First I assume when entering these dates you enter something like 1/4 for 1
April. If you do this Excel will automatically add the current year.

Or possibly a full date has been entered 1/4/2001 and it is formatted to
only show the Day/Month. In either case the year is still there because
formatting doesn't change the underlying value so to sort By day/Month try
this

in a helper column insert the formula
=TEXT(A1,"mmmdd") and drag down
Sort by helper column which you can hide if you want.

Mike

"Grosvenor" wrote:

I have a "Birthday" column in a spreadsheet where only the month/day is
entered. When sorting on this column, the month/day is sorted by the year
the date was entered even though no year was entered. There appears to be a
defaulting setting somewhere, but cannot determined where to adjust the
setting so the column is sorted on only month/year regardless of year
entered.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Using the sort function for a date column where year was not enter

Dates are always stored including a year.
Use a helper column as sort key.
If you have dates like 0101:
=month(a1)&day(a1)
If you prefer month names:
=DATE(1904,Month(a1),day(a1)) and format as mmm dd
The use of 1904 is to enable Feb 29 dates

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Grosvenor" wrote in message ...
|I have a "Birthday" column in a spreadsheet where only the month/day is
| entered. When sorting on this column, the month/day is sorted by the year
| the date was entered even though no year was entered. There appears to be a
| defaulting setting somewhere, but cannot determined where to adjust the
| setting so the column is sorted on only month/year regardless of year
| entered.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Using the sort function for a date column where year was not e

This explains everything! Thank you very much!

"Niek Otten" wrote:

Dates are always stored including a year.
Use a helper column as sort key.
If you have dates like 0101:
=month(a1)&day(a1)
If you prefer month names:
=DATE(1904,Month(a1),day(a1)) and format as mmm dd
The use of 1904 is to enable Feb 29 dates

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Grosvenor" wrote in message ...
|I have a "Birthday" column in a spreadsheet where only the month/day is
| entered. When sorting on this column, the month/day is sorted by the year
| the date was entered even though no year was entered. There appears to be a
| defaulting setting somewhere, but cannot determined where to adjust the
| setting so the column is sorted on only month/year regardless of year
| entered.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Using the sort function for a date column where year was not enter

Sorting mmmdd cells will not put them in chronological order because they
will be sorted alphabetically by month name (so, April will be first,
followed by August, etc.).

Use a format of "mmdd" if you want to follow this procedure.

Regards,
Fred.

"Mike H" wrote in message
...
Hi,

First I assume when entering these dates you enter something like 1/4 for
1
April. If you do this Excel will automatically add the current year.

Or possibly a full date has been entered 1/4/2001 and it is formatted to
only show the Day/Month. In either case the year is still there because
formatting doesn't change the underlying value so to sort By day/Month try
this

in a helper column insert the formula
=TEXT(A1,"mmmdd") and drag down
Sort by helper column which you can hide if you want.

Mike

"Grosvenor" wrote:

I have a "Birthday" column in a spreadsheet where only the month/day is
entered. When sorting on this column, the month/day is sorted by the
year
the date was entered even though no year was entered. There appears to
be a
defaulting setting somewhere, but cannot determined where to adjust the
setting so the column is sorted on only month/year regardless of year
entered.


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
Can I enter/sort multiple data within cells of a column? Greg Excel Discussion (Misc queries) 1 December 26th 07 04:57 PM
Sort by date month and not year Visha Excel Discussion (Misc queries) 4 December 17th 07 07:15 PM
enter date with year first mcgoo Excel Discussion (Misc queries) 2 April 4th 07 10:26 PM
I want to sort by month, date, year. Birthdates. How do I do it Shebamandy Excel Worksheet Functions 2 October 17th 06 04:52 PM
how can I stop Excel Advancing the year by 1 when I enter a date? Priscilla Excel Discussion (Misc queries) 4 April 1st 06 02:55 PM


All times are GMT +1. The time now is 07:19 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"