Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default I have Text in a Colunm but want to sort ...

I have a column which was filled in with text:

Q3-09
Q4-10
Q1-11
Q2-09

Where the Text means:

3rd Quarter 2009
4th Quarter 2010
1st Quarter 2011
2nd Quarter 2009

I would like to sort in ascending order:

Q2-09
Q3-09
Q4-10
Q1-11

Is there an easy way to sort this column, (there are several thousand
entries).

Darrell
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default I have Text in a Colunm but want to sort ...

--Insert a column near by.
--Say you have the quater in ColA. In col B cellB2 enter the below formula
and copy down as required and format col B to date..

=DATEVALUE("01-"&MID(A2,2,6))

--Select ColA and ColB.
--Sort ColB in Ascending order.

If this post helps click Yes
---------------
Jacob Skaria


"Dr. Darrell" wrote:

I have a column which was filled in with text:

Q3-09
Q4-10
Q1-11
Q2-09

Where the Text means:

3rd Quarter 2009
4th Quarter 2010
1st Quarter 2011
2nd Quarter 2009

I would like to sort in ascending order:

Q2-09
Q3-09
Q4-10
Q1-11

Is there an easy way to sort this column, (there are several thousand
entries).

Darrell

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default I have Text in a Colunm but want to sort ...

Create a helper column witht his formula:

=RIGHT(A2,2)&MID(A2,2,1)
Copy down as needed, then sort on the helper column.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Dr. Darrell" wrote:

I have a column which was filled in with text:

Q3-09
Q4-10
Q1-11
Q2-09

Where the Text means:

3rd Quarter 2009
4th Quarter 2010
1st Quarter 2011
2nd Quarter 2009

I would like to sort in ascending order:

Q2-09
Q3-09
Q4-10
Q1-11

Is there an easy way to sort this column, (there are several thousand
entries).

Darrell

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default I have Text in a Colunm but want to sort ...

Create a list of all possible values something like this...

Q1 - 09
Q2 - 09
Q3 - 09
Q4 - 09
Q1 - 10
Q2 - 10
Q3 - 10
Q4 - 10
Q1 - 11
Q2 - 11
Q3 - 11
Q4 - 11

Now Select Tools - Options |Custom Lists and there is an option to import
these values as a list. Once you have that cusotm list you can sort based on
it's order.

Select the range to be sorted. Select Data - Sort - Options | Change from
normal to your custom list.
--
HTH...

Jim Thomlinson


"Dr. Darrell" wrote:

I have a column which was filled in with text:

Q3-09
Q4-10
Q1-11
Q2-09

Where the Text means:

3rd Quarter 2009
4th Quarter 2010
1st Quarter 2011
2nd Quarter 2009

I would like to sort in ascending order:

Q2-09
Q3-09
Q4-10
Q1-11

Is there an easy way to sort this column, (there are several thousand
entries).

Darrell

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default I have Text in a Colunm but want to sort ...

Thank you, that works nicely.

"Jacob Skaria" wrote:

--Insert a column near by.
--Say you have the quater in ColA. In col B cellB2 enter the below formula
and copy down as required and format col B to date..

=DATEVALUE("01-"&MID(A2,2,6))

--Select ColA and ColB.
--Sort ColB in Ascending order.

If this post helps click Yes
---------------
Jacob Skaria


"Dr. Darrell" wrote:

I have a column which was filled in with text:

Q3-09
Q4-10
Q1-11
Q2-09

Where the Text means:

3rd Quarter 2009
4th Quarter 2010
1st Quarter 2011
2nd Quarter 2009

I would like to sort in ascending order:

Q2-09
Q3-09
Q4-10
Q1-11

Is there an easy way to sort this column, (there are several thousand
entries).

Darrell

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 BY COLUNM ENTRY 75gator Excel Discussion (Misc queries) 8 June 14th 09 03:35 PM
HOW WE CAN FIT THE TEXT MESSAGES IN SINGLE COLUNM UP/DOWN WARDS MS EXCELL NEW USER CLARIFICATION New Users to Excel 2 April 30th 09 03:48 PM
change the colunm header back to letters? Kevin L Karch Setting up and Configuration of Excel 2 November 12th 08 11:19 PM
adding same format for colunm doss04 New Users to Excel 3 October 6th 08 11:13 PM
How to keep colunm headings when scrolling down in excel Oliver Excel Discussion (Misc queries) 2 August 29th 05 05:43 PM


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