Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sylvia
 
Posts: n/a
Default Can't Change and Re-Sort

I have a spreadsheet that has many columns, some of which I am trying to sort
by. One Column is called Closed Date, and is in Date Format. Another column
is called Referred Date and is in Date Format. And another is called Status
and is in General Format. I am sorting the spreadsheet first by Closed Date,
then by Referred Date, then by Status. It sorts fine. nIf I correct a date
and re-sort, it re-sorts fine. BUT, if I correct a date and a status, it
does not re-sort correctly...the changed records is at the bottom of the
spreadsheet out of the sort sequence. I just can't figure out what is
happening and why it won't re-sort. HELP!!!
  #2   Report Post  
Otto Moehrbach
 
Posts: n/a
Default

Look at the closed date (the first sort key) of the row that does not sort
correctly and is now at the bottom of the table. Is it a valid date?
Select that cell and do Format - Cells - Select the Number tab. What is the
highlighted format?
If the format is not Date but it looks like a valid date, select a blank
cell and do Edit - Copy. Then again select the bad closed date cell and do
Edit - Paste Special, select Add and click OK. Now sort the table and see
if this corrects it.
Post back if this doesn't solve it for you. Provide the detail values of
the 3 entries in the row that doesn't sort correctly. HTH Otto
"Sylvia" wrote in message
...
I have a spreadsheet that has many columns, some of which I am trying to
sort
by. One Column is called Closed Date, and is in Date Format. Another
column
is called Referred Date and is in Date Format. And another is called
Status
and is in General Format. I am sorting the spreadsheet first by Closed
Date,
then by Referred Date, then by Status. It sorts fine. nIf I correct a
date
and re-sort, it re-sorts fine. BUT, if I correct a date and a status, it
does not re-sort correctly...the changed records is at the bottom of the
spreadsheet out of the sort sequence. I just can't figure out what is
happening and why it won't re-sort. HELP!!!



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Just a guess, but it sounds like some of your dates are Text and some are really
Dates.

I'd format the date cells (all the columns) using the long date:
mmmm dd, yyyy

And see if there were any cells that didn't change correctly.

If you find those, then fix them (reentering the date???), then you can format
the way you like and try resorting.

Since you're doing a lot of work, you may want to do this against a copy of your
workbook/worksheet--just in case.

Or make sure you close without saving if really bad things happen.

Sylvia wrote:

I have a spreadsheet that has many columns, some of which I am trying to sort
by. One Column is called Closed Date, and is in Date Format. Another column
is called Referred Date and is in Date Format. And another is called Status
and is in General Format. I am sorting the spreadsheet first by Closed Date,
then by Referred Date, then by Status. It sorts fine. nIf I correct a date
and re-sort, it re-sorts fine. BUT, if I correct a date and a status, it
does not re-sort correctly...the changed records is at the bottom of the
spreadsheet out of the sort sequence. I just can't figure out what is
happening and why it won't re-sort. HELP!!!


--

Dave Peterson
  #4   Report Post  
Sylvia
 
Posts: n/a
Default

The dates in the Complete and Referred Columns are Date Format. They sort
and and I can change a date and resort without any problem. The third Column
is Status, which is a text column. The problem is when I changed the status,
then try to resort, the changed line appears at the bottom, and out of sort.
Just to further complicate things. This is data from an Access Query that
was imported into Excel. For some reason, if the export from Access to Excel
was thru "Analyze It with Excel" or exported thru a Macro, the sort problem
occured. If I exported it using Export from the File Drop Down, it works
fine. Any thoughts???

"Dave Peterson" wrote:

Just a guess, but it sounds like some of your dates are Text and some are really
Dates.

I'd format the date cells (all the columns) using the long date:
mmmm dd, yyyy

And see if there were any cells that didn't change correctly.

If you find those, then fix them (reentering the date???), then you can format
the way you like and try resorting.

Since you're doing a lot of work, you may want to do this against a copy of your
workbook/worksheet--just in case.

Or make sure you close without saving if really bad things happen.

Sylvia wrote:

I have a spreadsheet that has many columns, some of which I am trying to sort
by. One Column is called Closed Date, and is in Date Format. Another column
is called Referred Date and is in Date Format. And another is called Status
and is in General Format. I am sorting the spreadsheet first by Closed Date,
then by Referred Date, then by Status. It sorts fine. nIf I correct a date
and re-sort, it re-sorts fine. BUT, if I correct a date and a status, it
does not re-sort correctly...the changed records is at the bottom of the
spreadsheet out of the sort sequence. I just can't figure out what is
happening and why it won't re-sort. HELP!!!


--

Dave Peterson

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

I don't use Access--so take this with a grain of salt.

But I'd double check to make sure the value in the cell is a real date.
(Formatting the cell as a date won't change a text value to a date value.)

=isnumber(a1)

will return True if A1 contains a date (or any number)

(Maybe someone familiar with "analyze it with excel" can jump in.)

Sylvia wrote:

The dates in the Complete and Referred Columns are Date Format. They sort
and and I can change a date and resort without any problem. The third Column
is Status, which is a text column. The problem is when I changed the status,
then try to resort, the changed line appears at the bottom, and out of sort.
Just to further complicate things. This is data from an Access Query that
was imported into Excel. For some reason, if the export from Access to Excel
was thru "Analyze It with Excel" or exported thru a Macro, the sort problem
occured. If I exported it using Export from the File Drop Down, it works
fine. Any thoughts???

"Dave Peterson" wrote:

Just a guess, but it sounds like some of your dates are Text and some are really
Dates.

I'd format the date cells (all the columns) using the long date:
mmmm dd, yyyy

And see if there were any cells that didn't change correctly.

If you find those, then fix them (reentering the date???), then you can format
the way you like and try resorting.

Since you're doing a lot of work, you may want to do this against a copy of your
workbook/worksheet--just in case.

Or make sure you close without saving if really bad things happen.

Sylvia wrote:

I have a spreadsheet that has many columns, some of which I am trying to sort
by. One Column is called Closed Date, and is in Date Format. Another column
is called Referred Date and is in Date Format. And another is called Status
and is in General Format. I am sorting the spreadsheet first by Closed Date,
then by Referred Date, then by Status. It sorts fine. nIf I correct a date
and re-sort, it re-sorts fine. BUT, if I correct a date and a status, it
does not re-sort correctly...the changed records is at the bottom of the
spreadsheet out of the sort sequence. I just can't figure out what is
happening and why it won't re-sort. HELP!!!


--

Dave Peterson


--

Dave Peterson
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
excel change default column sort to current selection john palmer Excel Worksheet Functions 2 March 8th 05 03:07 PM
How do I link two cells as to allow me to change the value in eit. jpvlvt Excel Discussion (Misc queries) 3 January 26th 05 01:28 AM
how do i make a date change automatically if i change one before . dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 09:21 PM
How to change the default font and size of "comments"? ClayMcQ Excel Discussion (Misc queries) 1 January 7th 05 11:43 PM
Why does a formula change when I sort a column pdhay Excel Worksheet Functions 1 December 9th 04 04:31 PM


All times are GMT +1. The time now is 10:41 AM.

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

About Us

"It's about Microsoft Excel"