+ Reply to Thread
Results 1 to 3 of 3

Sorting Column Problem

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-02-2009
    Location
    Texas, USA
    MS-Off Ver
    Excel 2007
    Posts
    110

    Sorting Column Problem

    For the file attached I am trying to sort by year first, then quarter. How do I go about doing this.

    For instance it currently reads
    2Q05
    1Q06
    4Q05
    3Q05

    Which is obviously incorrect I need it to read

    2Q05
    3Q05
    4Q05
    1Q06

    My current fix was adding a new column labeled year. And then doing a sort by year and then by quarter. Is there a way to get this to sort out correctly without adding that extra column?
    Many thanks
    Attached Files Attached Files
    Last edited by cmf0106; 09-30-2009 at 09:40 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sorting Column Problem

    If your value read as 051Q or 05Q1, then you could sort without the need for the extra column.

    In another adjacent column you could change the order using this formula then copy and paste values into the quarter column
    =RIGHT(A2,2)&LEFT(A2,2) = 061Q

    or

    =RIGHT(A2,2)&MID(A2,2,1)&LEFT(A2,1) = 06Q1

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Sorting Column Problem

    Is there a way to get this to sort out correctly without adding that extra column?
    Make sure that the year was derived from the quarter string, and not manually entered.

    I'd put month and year in one column, and use a formula derive the quarter string from that:

    =INT((MONTH(A1)+2) / 3) & "Q" & RIGHT(YEAR(A1), 2)
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1