#1   Report Post  
Graham_Wright
 
Posts: n/a
Default Date sort problems

I have a data base in Excel on A Mac with one column listing dates.
I need to sort the data into date order but some of the date entries appear
not to be treated as dates.
The format tab indicates that all the entries ARE dates, but if I do a
DATEVALUE() on the range, some convert to numbers but others to "VALUE".
Even if I re-enter the dates manually, they still do not sort porperly.
Anyone able to help please?
  #2   Report Post  
Richard Neville
 
Posts: n/a
Default

When I switched from Mac to PC some years ago, I had trouble with dates
created on a Mac because it uses the 1904 date system, while PCs use the
1900 system and some dates were four years off. Check the setting in
Tools-Options-Calculation.

"Graham_Wright" wrote in message
...
I have a data base in Excel on A Mac with one column listing dates.
I need to sort the data into date order but some of the date entries
appear
not to be treated as dates.
The format tab indicates that all the entries ARE dates, but if I do a
DATEVALUE() on the range, some convert to numbers but others to "VALUE".
Even if I re-enter the dates manually, they still do not sort porperly.
Anyone able to help please?



  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Graham,

Insert and format a column as date, then use a formula in that column to
convert your values. Assuming your first date in in cell A1:

=IF(ISERROR(DATEVALUE(A1)),A1,DATEVALUE(A1))

Copy down to match your data, then sort based on the formula column.

You could copy and pastespecial values and delete your original data to
simplify things.

HTH,
Bernie
MS Excel MVP

"Graham_Wright" wrote in message
...
I have a data base in Excel on A Mac with one column listing dates.
I need to sort the data into date order but some of the date entries

appear
not to be treated as dates.
The format tab indicates that all the entries ARE dates, but if I do a
DATEVALUE() on the range, some convert to numbers but others to "VALUE".
Even if I re-enter the dates manually, they still do not sort porperly.
Anyone able to help please?



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
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM
How do I stop today() from updating date on saved spreadsheets? lionmark Excel Discussion (Misc queries) 2 January 4th 05 01:03 AM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM
Excel 2003 "File Open": how keep folders at top with sort by Date. Aging Analyst Excel Discussion (Misc queries) 1 December 3rd 04 03:26 AM


All times are GMT +1. The time now is 12:14 PM.

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"