Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hi, The file has date formate as MM/DD/YYYY and I want to keep it that
way. Is there anyway the file can be sorted by only MM? I am trying to sort by Jan, Feb, March...... November, December together. Thanks, Saz |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
You should create a new column, let's say G, with the formula G2: =MONTH(A2),
where A is the column containing the date. Then you can sort according to this column. But if you have dates for more than one year, all the entries for January 2006 and January 2007 will be sorted together. Use instead G2=YEAR(A2)*100+MONTH(A2) to avoid this situation. Stephane. -- Message posted via http://www.officekb.com |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Assuming the date in your sheet is numerical and not text, then a possible
solution is to create a column next to your date column (and assuming your date column is A) in the new column enter the formula =MONTH(A1) which will give you the month (numbered 1 to 12). Copy formula down the rows you want and sort on that column. You could then hide the new column or delete it altogether. Hope that is of help Philip[ "Saz" wrote in message ps.com... Hi, The file has date formate as MM/DD/YYYY and I want to keep it that way. Is there anyway the file can be sorted by only MM? I am trying to sort by Jan, Feb, March...... November, December together. Thanks, Saz |
#4
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Philip Reece-Heal wrote:
Assuming the date in your sheet is numerical and not text, then a possible solution is to create a column next to your date column (and assuming your date column is A) in the new column enter the formula =MONTH(A1) which will give you the month (numbered 1 to 12). Copy formula down the rows you want and sort on that column. You could then hide the new column or delete it altogether. Hope that is of help Philip[ "Saz" wrote in message ps.com... Hi, The file has date formate as MM/DD/YYYY and I want to keep it that way. Is there anyway the file can be sorted by only MM? I am trying to sort by Jan, Feb, March...... November, December together. Thanks, Saz Not very elegant, but when I need to do this I just break the date into 3 columns month,day,year by using text to columns and format it as text. gls858 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Retrieve data for previous 3, 6, 12 month given current month | Excel Worksheet Functions | |||
Sort month/date/year data using month and date only | Excel Discussion (Misc queries) | |||
I want to convert word column data to excel row data to sort addre | Excel Discussion (Misc queries) | |||
How do I sort data by Month on the date format like (02/04/97)? | Excel Discussion (Misc queries) | |||
How do I sort a column of data and have each data row sort accordi | Excel Discussion (Misc queries) |