#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sort problem

Hi, We are trying to conduct a sort, however, the sort is not working.


This is what we are trying to sort:

Jan 09-12
Jan 16-19
Jan 23-26
May 22-24
Jul 10-12
Jul 31-Aug 7
Aug 28-30
Feb 22-Mar 2
(Col. A) (Col. B)

We made a custom sort with our fiscal year starting in Oct. And, for
some reason, Feb will not follow the sort.

Also, in Col. B, 2 cells are saying there is an error with the date
text format, and we made those fields text cells. And, i am sure those
2 cells are not causing the problem (hopefully).

Any suggestions would be quite helpful.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Sort problem

Try using the vlookup function to create a numeric value for you month codes:

Starting at cell A1 on a separate sheet (Sheet2 in this example) enter a
table that contains the month codes in column A and numbers from 1-12 in
column B:

Jan 1
Feb 2
Mar 3
Apr 4
May 5
etc...


Back on you sheet with the data, enter the following formula in column C
starting in row 2 assuming that is where you data starts:

=VLOOKUP(A2,Sheet2!$A$1:$B$12,2,FALSE)

Copy/paste the formula for the entire range of data.

Enter the following formula in column D starting again at row 2:

=VALUE(LEFT(B2,2))

Copy/paste the formula for the entire range of data.

This should give you two columns of numbers, C and D, that can be used to
sort the data.

Regards...


"spfas" wrote:

Hi, We are trying to conduct a sort, however, the sort is not working.


This is what we are trying to sort:

Jan 09-12
Jan 16-19
Jan 23-26
May 22-24
Jul 10-12
Jul 31-Aug 7
Aug 28-30
Feb 22-Mar 2
(Col. A) (Col. B)

We made a custom sort with our fiscal year starting in Oct. And, for
some reason, Feb will not follow the sort.

Also, in Col. B, 2 cells are saying there is an error with the date
text format, and we made those fields text cells. And, i am sure those
2 cells are not causing the problem (hopefully).

Any suggestions would be quite helpful.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sort problem

Thank you. We will try that.


ChristopherTri wrote:
Try using the vlookup function to create a numeric value for you month codes:

Starting at cell A1 on a separate sheet (Sheet2 in this example) enter a
table that contains the month codes in column A and numbers from 1-12 in
column B:

Jan 1
Feb 2
Mar 3
Apr 4
May 5
etc...


Back on you sheet with the data, enter the following formula in column C
starting in row 2 assuming that is where you data starts:

=VLOOKUP(A2,Sheet2!$A$1:$B$12,2,FALSE)

Copy/paste the formula for the entire range of data.

Enter the following formula in column D starting again at row 2:

=VALUE(LEFT(B2,2))

Copy/paste the formula for the entire range of data.

This should give you two columns of numbers, C and D, that can be used to
sort the data.

Regards...


"spfas" wrote:

Hi, We are trying to conduct a sort, however, the sort is not working.


This is what we are trying to sort:

Jan 09-12
Jan 16-19
Jan 23-26
May 22-24
Jul 10-12
Jul 31-Aug 7
Aug 28-30
Feb 22-Mar 2
(Col. A) (Col. B)

We made a custom sort with our fiscal year starting in Oct. And, for
some reason, Feb will not follow the sort.

Also, in Col. B, 2 cells are saying there is an error with the date
text format, and we made those fields text cells. And, i am sure those
2 cells are not causing the problem (hopefully).

Any suggestions would be quite helpful.



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 sort problem Daniel Excel Worksheet Functions 5 April 28th 07 09:34 PM
Accidental Sort roselaurel Excel Discussion (Misc queries) 5 November 12th 06 03:12 PM
Saving Sort Criteria (or Sort Lists) Jim J. Excel Worksheet Functions 1 July 25th 06 10:55 AM
Some rows sort incorrectly in Excel. How do I correct the problem. lee1838 Excel Worksheet Functions 2 November 5th 05 09:21 AM
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM


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