Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Problem with sorting 19th century dates

I have an EXCEL 2003 worksheet that includes a column of the birthdates of
about 500 people, including some with birthdates in the 1800's and 1700's.
The data has been derived from a GEDCOM file, the standard for exporting
genealogy programs into other programs such as EXCEL.

I have formatted the cells as Date "3/14/2001", hoping to sort the
birthdates chronologically. However, the the nineteenth century dates, for
example January 1, 1890, refuse to sort properly. It appears as if EXCEL
does not know how to handle a nineteenth century date.

Is there a trick to formatting cells which contain dates before 1900? I
will appreciate advice.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Problem with sorting 19th century dates

On Sun, 7 Jan 2007 10:15:01 -0800, Robert Judge
wrote:

I have an EXCEL 2003 worksheet that includes a column of the birthdates of
about 500 people, including some with birthdates in the 1800's and 1700's.
The data has been derived from a GEDCOM file, the standard for exporting
genealogy programs into other programs such as EXCEL.

I have formatted the cells as Date "3/14/2001", hoping to sort the
birthdates chronologically. However, the the nineteenth century dates, for
example January 1, 1890, refuse to sort properly. It appears as if EXCEL
does not know how to handle a nineteenth century date.

Is there a trick to formatting cells which contain dates before 1900? I
will appreciate advice.


From

HELP Excel Specifications and Limits:

Earliest date allowed for calculation January 1, 1900
(January 1, 1904, if 1904 date system is used)

Latest date allowed for calculation December 31, 9999

-----------------------------------------------------------

There are VB solutions available for handling dates prior to 1 Jan 1900, but
native Excel does not.

--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Problem with sorting 19th century dates

As Ron correctly states there is little one can do for handling dates before
1900 as date values.

Have a look at John Walkenbach's solution on
http://j-walk.com/ss/excel/files/xdate.htm

Or you can split up the date and treatment as seperate day, month and year
as in
if the date is in A1:

month= =LEFT($A$1,FIND("/",$A$1,1)-1)
day= =MID($A$1,FIND("/",$A$1,1)+1,
FIND("/",$A$1,FIND("/",$A$1,
1)+1)-1-FIND("/",$A$1,1))
year= =RIGHT($A$1,LEN($A$1)-FIND("/",$A$1,4))

And treat them seperately.
--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Ron Rosenfeld" wrote:

On Sun, 7 Jan 2007 10:15:01 -0800, Robert Judge
wrote:

I have an EXCEL 2003 worksheet that includes a column of the birthdates of
about 500 people, including some with birthdates in the 1800's and 1700's.
The data has been derived from a GEDCOM file, the standard for exporting
genealogy programs into other programs such as EXCEL.

I have formatted the cells as Date "3/14/2001", hoping to sort the
birthdates chronologically. However, the the nineteenth century dates, for
example January 1, 1890, refuse to sort properly. It appears as if EXCEL
does not know how to handle a nineteenth century date.

Is there a trick to formatting cells which contain dates before 1900? I
will appreciate advice.


From

HELP Excel Specifications and Limits:

Earliest date allowed for calculation January 1, 1900
(January 1, 1904, if 1904 date system is used)

Latest date allowed for calculation December 31, 9999

-----------------------------------------------------------

There are VB solutions available for handling dates prior to 1 Jan 1900, but
native Excel does not.

--ron

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
Sorting problem, need some help Chris B Excel Worksheet Functions 4 December 13th 06 07:26 PM
Excel Sorting Problem Eric Weller Excel Discussion (Misc queries) 1 July 27th 06 07:03 PM
Sorting problem JC Excel Discussion (Misc queries) 3 January 28th 05 04:27 AM
Question on sorting dates Excel heavy user Excel Discussion (Misc queries) 3 January 21st 05 06:12 PM
Sorting dates Herb Excel Worksheet Functions 3 October 30th 04 02:22 AM


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